Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,6 +83,16 @@ def search_fatwa(data):
|
|
| 83 |
"link2": df2.iloc[top_idx2]["link"]
|
| 84 |
}
|
| 85 |
|
| 86 |
-
iface = gr.Interface(fn=search_fatwa, inputs=[gr.Textbox()], outputs="json")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
iface.launch(share=True)
|
|
|
|
| 83 |
"link2": df2.iloc[top_idx2]["link"]
|
| 84 |
}
|
| 85 |
|
| 86 |
+
iface = gr.Interface(fn=search_fatwa, inputs=[gr.Textbox(label="text", lines=3)], outputs="json")
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
# iface = gr.Interface(
|
| 92 |
+
# fn=predict,
|
| 93 |
+
# inputs=[gr.Textbox(label="text", lines=3)],
|
| 94 |
+
# outputs='text',
|
| 95 |
+
# title=title,
|
| 96 |
+
# )
|
| 97 |
|
| 98 |
iface.launch(share=True)
|