Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
19 |
outputs=gr.JSON(),
|
20 |
title="List of Chapters from Quran",
|
21 |
-
description="Click the button to
|
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()
|