Bofandra commited on
Commit
86ed3e1
·
verified ·
1 Parent(s): a614b44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
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(fn=find, inputs="textbox", outputs=[gr.Dataframe(headers=['sura', 'aya', 'text'],datatype=["str", "str", "markdown"],wrap=True),gr.DownloadButton()], title="Quran Finder")
 
 
 
 
 
 
 
 
 
 
 
 
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__":