Bofandra commited on
Commit
1b0b902
·
verified ·
1 Parent(s): 700408f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -71,14 +71,16 @@ def find(query):
71
  print(time.time())
72
 
73
  #return sorted_quran
74
- filepath = Path(query+'.csv')
75
- results.to_csv(filepath,index=False)
76
- return results, filepath
 
77
 
78
  demo = gr.Interface(
79
  fn=find,
80
  inputs="textbox",
81
- outputs=[gr.Dataframe(headers=['text'],datatype=["markdown"],wrap=True),gr.DownloadButton()],
 
82
  cache_examples="lazy",
83
  examples=[
84
  ["law of inheritance in islam"],
 
71
  print(time.time())
72
 
73
  #return sorted_quran
74
+ #filepath = Path(query+'.csv')
75
+ #results.to_csv(filepath,index=False)
76
+ #return results, filepath
77
+ return results
78
 
79
  demo = gr.Interface(
80
  fn=find,
81
  inputs="textbox",
82
+ #outputs=[gr.Dataframe(headers=['text'],datatype=["markdown"],wrap=True),gr.DownloadButton()],
83
+ outputs=[gr.Dataframe(headers=['text'],datatype=["markdown"],wrap=True)],
84
  cache_examples="lazy",
85
  examples=[
86
  ["law of inheritance in islam"],