OpenLab-NLP commited on
Commit
412be9f
ยท
verified ยท
1 Parent(s): fef685f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -228,7 +228,8 @@ with gr.Blocks() as demo:
228
  docs_input = gr.Textbox(label="๋ฌธ์„œ ๋ฆฌ์ŠคํŠธ (ํ•œ ์ค„์”ฉ)", placeholder="๋ฌธ์„œ๋ฅผ ํ•œ ์ค„์”ฉ ์ž…๋ ฅํ•˜์„ธ์š”.", lines=10)
229
 
230
  with gr.Row():
231
- top_docs_out = gr.Dataframe(headers=["Document", "Score"], max_rows=TOP_K)
 
232
  answer_out = gr.Textbox(label="๋‹ต๋ณ€")
233
 
234
  run_btn = gr.Button("๊ฒ€์ƒ‰/QA ์‹คํ–‰")
 
228
  docs_input = gr.Textbox(label="๋ฌธ์„œ ๋ฆฌ์ŠคํŠธ (ํ•œ ์ค„์”ฉ)", placeholder="๋ฌธ์„œ๋ฅผ ํ•œ ์ค„์”ฉ ์ž…๋ ฅํ•˜์„ธ์š”.", lines=10)
229
 
230
  with gr.Row():
231
+ top_docs_out = gr.Dataframe(headers=["Document", "Score"])
232
+
233
  answer_out = gr.Textbox(label="๋‹ต๋ณ€")
234
 
235
  run_btn = gr.Button("๊ฒ€์ƒ‰/QA ์‹คํ–‰")