Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def find(query):
|
|
65 |
|
66 |
#return sorted_quran
|
67 |
filepath = Path(query+'.csv')
|
68 |
-
results.to_csv(filepath)
|
69 |
return results, filepath
|
70 |
|
71 |
demo = gr.Interface(fn=find, inputs="textbox", outputs=[gr.Dataframe(headers=['sura', 'aya', 'text'],datatype=["str", "str", "markdown"],wrap=True),gr.DownloadButton()])
|
|
|
65 |
|
66 |
#return sorted_quran
|
67 |
filepath = Path(query+'.csv')
|
68 |
+
results.to_csv(filepath,index=False)
|
69 |
return results, filepath
|
70 |
|
71 |
demo = gr.Interface(fn=find, inputs="textbox", outputs=[gr.Dataframe(headers=['sura', 'aya', 'text'],datatype=["str", "str", "markdown"],wrap=True),gr.DownloadButton()])
|