FDSRashid commited on
Commit
b746a08
·
verified ·
1 Parent(s): f55abee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def find_most_similar_matn(text, n):
52
  with gr.Blocks() as demo:
53
  text_input = gr.Textbox()
54
  num_hadith = gr.Slider(1, 50, value = 5, label = 'Num Hadith', info = 'Choose the number of Hadith to Return')
55
- text_output = gr.DataFrame()
56
  text_button = gr.Button("Retrieve")
57
  text_button.click(find_most_similar_matn, inputs=[text_input, num_hadith], outputs=text_output)
58
  demo.launch()
 
52
  with gr.Blocks() as demo:
53
  text_input = gr.Textbox()
54
  num_hadith = gr.Slider(1, 50, value = 5, label = 'Num Hadith', info = 'Choose the number of Hadith to Return')
55
+ text_output = gr.DataFrame(wrap=True)
56
  text_button = gr.Button("Retrieve")
57
  text_button.click(find_most_similar_matn, inputs=[text_input, num_hadith], outputs=text_output)
58
  demo.launch()