Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -84,14 +84,16 @@ def find(query):
|
|
84 |
#results = results.style.format({'text': make_clickable_both})
|
85 |
|
86 |
#return sorted_quran
|
87 |
-
filepath = Path(query+'.csv')
|
88 |
-
results.to_csv(filepath,index=False)
|
89 |
-
return results, filepath
|
|
|
90 |
|
91 |
demo = gr.Interface(
|
92 |
fn=find,
|
93 |
inputs="textbox",
|
94 |
-
outputs=[gr.Dataframe(headers=['text'],datatype=["markdown"],wrap=True),gr.DownloadButton()],
|
|
|
95 |
cache_examples="lazy",
|
96 |
examples=[
|
97 |
["law of inheritance in islam"],
|
|
|
84 |
#results = results.style.format({'text': make_clickable_both})
|
85 |
|
86 |
#return sorted_quran
|
87 |
+
#filepath = Path(query+'.csv')
|
88 |
+
#results.to_csv(filepath,index=False)
|
89 |
+
#return results, filepath
|
90 |
+
return results
|
91 |
|
92 |
demo = gr.Interface(
|
93 |
fn=find,
|
94 |
inputs="textbox",
|
95 |
+
#outputs=[gr.Dataframe(headers=['text'],datatype=["markdown"],wrap=True),gr.DownloadButton()],
|
96 |
+
outputs=[gr.Dataframe(headers=['text'],datatype=["markdown"],wrap=True)],
|
97 |
cache_examples="lazy",
|
98 |
examples=[
|
99 |
["law of inheritance in islam"],
|