captain-awesome commited on
Commit
75e2f5d
·
verified ·
1 Parent(s): 1e99350

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,12 +15,12 @@ def get_list_quran_chapters() -> dict:
15
  # Create the Gradio interface
16
  demo = gr.Interface(
17
  fn=get_list_quran_chapters,
18
- inputs=gr.Button("Get Chapters"), # Use a button to trigger the API call
19
  outputs=gr.JSON(),
20
  title="List of Chapters from Quran",
21
- description="Click the button to get a list of all chapters from the Quran."
22
  )
23
 
24
  # Launch the interface
25
  if __name__ == "__main__":
26
- demo.launch()
 
15
  # Create the Gradio interface
16
  demo = gr.Interface(
17
  fn=get_list_quran_chapters,
18
+ inputs=None, # No user input; trigger only on button click
19
  outputs=gr.JSON(),
20
  title="List of Chapters from Quran",
21
+ description="Click the button below to retrieve the list of all Quran chapters."
22
  )
23
 
24
  # Launch the interface
25
  if __name__ == "__main__":
26
+ demo.launch()