Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def find_most_similar_matn(text, n):
|
|
51 |
|
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)
|
|
|
51 |
|
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', step = 1)
|
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)
|