Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -128,12 +128,12 @@ def keyword_search(keyword):
|
|
128 |
return f"API Error: {e}"
|
129 |
|
130 |
# Gradio interface
|
131 |
-
|
132 |
fn=generate_exegesis,
|
133 |
inputs=gr.Textbox(label="Enter Bible Passage for Exegesis", placeholder="e.g., John 3:16"),
|
134 |
outputs=gr.Textbox(label="Exegesis Commentary"),
|
135 |
title="JR Study Bible",
|
136 |
-
description="Enter a Bible passage to receive insightful exegesis commentary.
|
137 |
)
|
138 |
|
139 |
lookup_demo = gr.Interface(
|
@@ -145,11 +145,11 @@ lookup_demo = gr.Interface(
|
|
145 |
)
|
146 |
|
147 |
commentary_demo = gr.Interface(
|
148 |
-
fn=
|
149 |
-
inputs=gr.Textbox(label="
|
150 |
-
outputs=gr.Textbox(label="
|
151 |
title="Bible Commentary Generator",
|
152 |
-
description="
|
153 |
)
|
154 |
|
155 |
search_demo = gr.Interface(
|
@@ -162,7 +162,7 @@ search_demo = gr.Interface(
|
|
162 |
|
163 |
# Combine all interfaces into one app
|
164 |
app = gr.TabbedInterface(
|
165 |
-
[
|
166 |
["Exegesis", "Passage Lookup", "Commentary", "Keyword Search"]
|
167 |
)
|
168 |
|
|
|
128 |
return f"API Error: {e}"
|
129 |
|
130 |
# Gradio interface
|
131 |
+
exegesis_demo = gr.Interface(
|
132 |
fn=generate_exegesis,
|
133 |
inputs=gr.Textbox(label="Enter Bible Passage for Exegesis", placeholder="e.g., John 3:16"),
|
134 |
outputs=gr.Textbox(label="Exegesis Commentary"),
|
135 |
title="JR Study Bible",
|
136 |
+
description="Enter a Bible passage to receive insightful exegesis commentary."
|
137 |
)
|
138 |
|
139 |
lookup_demo = gr.Interface(
|
|
|
145 |
)
|
146 |
|
147 |
commentary_demo = gr.Interface(
|
148 |
+
fn=ask_any_questions,
|
149 |
+
inputs=gr.Textbox(label="Ask a Question", placeholder="e.g., What does John 3:16 mean?"),
|
150 |
+
outputs=gr.Textbox(label="Answer"),
|
151 |
title="Bible Commentary Generator",
|
152 |
+
description="Ask a question to generate commentary."
|
153 |
)
|
154 |
|
155 |
search_demo = gr.Interface(
|
|
|
162 |
|
163 |
# Combine all interfaces into one app
|
164 |
app = gr.TabbedInterface(
|
165 |
+
[exegesis_demo, lookup_demo, commentary_demo, search_demo],
|
166 |
["Exegesis", "Passage Lookup", "Commentary", "Keyword Search"]
|
167 |
)
|
168 |
|