gamza commited on
Commit
b6ce7b1
Β·
1 Parent(s): a4aea41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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="finlaymacklon/boxy_violet",
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)