Josebert commited on
Commit
2ae9b86
·
verified ·
1 Parent(s): d12ed59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -128,12 +128,12 @@ def keyword_search(keyword):
128
  return f"API Error: {e}"
129
 
130
  # Gradio interface
131
- 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. Thanks. Any complaints please email: [email protected]."
137
  )
138
 
139
  lookup_demo = gr.Interface(
@@ -145,11 +145,11 @@ lookup_demo = gr.Interface(
145
  )
146
 
147
  commentary_demo = gr.Interface(
148
- fn=generate_exegesis,
149
- inputs=gr.Textbox(label="Generate Commentary", placeholder="e.g., John 3:16"),
150
- outputs=gr.Textbox(label="Commentary"),
151
  title="Bible Commentary Generator",
152
- description="Enter a Bible passage to generate commentary."
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
- [demo, lookup_demo, commentary_demo, search_demo],
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