Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,19 @@ def find(query):
|
|
68 |
results.to_csv(filepath,index=False)
|
69 |
return results, filepath
|
70 |
|
71 |
-
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
#demo = gr.Interface(fn=find, inputs="textbox", outputs="textbox")
|
73 |
|
74 |
if __name__ == "__main__":
|
|
|
68 |
results.to_csv(filepath,index=False)
|
69 |
return results, filepath
|
70 |
|
71 |
+
demo = gr.Interface(
|
72 |
+
fn=find,
|
73 |
+
inputs="textbox",
|
74 |
+
outputs=[gr.Dataframe(headers=['sura', 'aya', 'text'],datatype=["str", "str", "markdown"],wrap=True),gr.DownloadButton()],
|
75 |
+
title="Quran Finder",
|
76 |
+
examples = gr.Examples(
|
77 |
+
examples=[
|
78 |
+
["law of inheritance in islam"],
|
79 |
+
["tunjukilah jalan yang lurus"],
|
80 |
+
["سليمان"],
|
81 |
+
],
|
82 |
+
inputs=[query],
|
83 |
+
))
|
84 |
#demo = gr.Interface(fn=find, inputs="textbox", outputs="textbox")
|
85 |
|
86 |
if __name__ == "__main__":
|