Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,9 +9,9 @@ model_bert = BertModel.from_pretrained("kykim/bert-kor-base")
|
|
| 9 |
df = pd.read_pickle('BookData_real_real_final.pkl')
|
| 10 |
df_emb = pd.read_pickle('review_emb.pkl')
|
| 11 |
|
| 12 |
-
title = "πκ³ λ―Ό ν΄κ²° λμ μΆμ²
|
| 13 |
-
description = "λΉμ μ κ³ λ―Ό ν΄κ²°μ λμμ€ μ±
μ μΆμ² ν΄λ립λλ€"
|
| 14 |
-
examples = [["μμ¦ μ μ΄ μ μ"]]
|
| 15 |
|
| 16 |
def embed_text(text):
|
| 17 |
inputs = tokenizer_bert(text, return_tensors="pt")
|
|
@@ -36,7 +36,7 @@ def recommend(message):
|
|
| 36 |
iface = gr.Interface(fn=recommend,
|
| 37 |
inputs="text",
|
| 38 |
outputs="text",
|
| 39 |
-
theme="
|
| 40 |
title=title,
|
| 41 |
description=description,
|
| 42 |
examples=examples)
|
|
|
|
| 9 |
df = pd.read_pickle('BookData_real_real_final.pkl')
|
| 10 |
df_emb = pd.read_pickle('review_emb.pkl')
|
| 11 |
|
| 12 |
+
title = "πκ³ λ―Ό ν΄κ²° λμ μΆμ²π"
|
| 13 |
+
description = "λΉμ μ κ³ λ―Ό ν΄κ²°μ λμμ€ μ±
μ μΆμ² ν΄λ립λλ€β₯"
|
| 14 |
+
examples = [["μμ¦ μ μ΄ μ μ"], ["μμΌλ‘ λ ν΄μΌ ν κΉ?"]]
|
| 15 |
|
| 16 |
def embed_text(text):
|
| 17 |
inputs = tokenizer_bert(text, return_tensors="pt")
|
|
|
|
| 36 |
iface = gr.Interface(fn=recommend,
|
| 37 |
inputs="text",
|
| 38 |
outputs="text",
|
| 39 |
+
theme="gradio/seafoam",
|
| 40 |
title=title,
|
| 41 |
description=description,
|
| 42 |
examples=examples)
|