Spaces:
Sleeping
Sleeping
Add the AI assistan in Sermon creation with the Proclamando and Contemplando help
Browse files
app.py
CHANGED
@@ -114,6 +114,25 @@ with gr.Blocks() as demo:
|
|
114 |
inputs=text_output
|
115 |
)
|
116 |
with gr.Tab("Obtener gu铆a de la comunidad (Preguntas)"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
with gr.Row():
|
118 |
#Bibliografy about components
|
119 |
# File (https://www.gradio.app/docs/gradio/file)
|
@@ -186,6 +205,16 @@ with gr.Blocks() as demo:
|
|
186 |
outputs=
|
187 |
[file_input_devotions, text_output_devotions]
|
188 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
|
190 |
if __name__ == "__main__":
|
191 |
llmBuilder = GeminiLLM()
|
|
|
114 |
inputs=text_output
|
115 |
)
|
116 |
with gr.Tab("Obtener gu铆a de la comunidad (Preguntas)"):
|
117 |
+
with gr.Accordion("Contemplando y Proclamando", open=False):
|
118 |
+
checkButton = gr.Checkbox(
|
119 |
+
value=False,
|
120 |
+
label="Mantener historial"
|
121 |
+
)
|
122 |
+
with gr.Row():
|
123 |
+
with gr.Tab("Contemplando"):
|
124 |
+
inbtwContemplando = gr.Button(f"Devocionalmente: {contemplandoQuestion['DEVOCIONALMENTE']}")
|
125 |
+
inbtwContemplandoOne = gr.Button(f"Ex茅gesis: {contemplandoQuestion['EX脡GESIS']}")
|
126 |
+
inbtwContemplandoTwo = gr.Button(f"Cristo: {contemplandoQuestion['CRISTO']}")
|
127 |
+
inbtwContemplandoTree = gr.Button(f"Arco Redentor: {contemplandoQuestion['ARCO REDENTOR']}")
|
128 |
+
inbtwContemplandoFour = gr.Button(f"Evangeli贸n: {contemplandoQuestion['EVANGELION']}")
|
129 |
+
inbtwContemplandoFourOne = gr.Button(f"Evangeli贸n: {contemplandoQuestion['EVANGELION_TWO']}")
|
130 |
+
|
131 |
+
with gr.Tab("Proclamando"):
|
132 |
+
inbtwProclamando = gr.Button(f"P煤blico: {proclamandoQuestion['P脷BLICO']}")
|
133 |
+
inbtwProclamandoOne = gr.Button(f"Historia: {proclamandoQuestion['HISTORIA']}")
|
134 |
+
inbtwProclamandoTwo = gr.Button(f"Expectativas: {proclamandoQuestion['EXPECTATIVAS']}")
|
135 |
+
inbtwProclamandoTwoTwo = gr.Button(f"Expectativas: {proclamandoQuestion['EXPECTATIVAS_TWO']}")
|
136 |
with gr.Row():
|
137 |
#Bibliografy about components
|
138 |
# File (https://www.gradio.app/docs/gradio/file)
|
|
|
205 |
outputs=
|
206 |
[file_input_devotions, text_output_devotions]
|
207 |
)
|
208 |
+
with gr.Tab("Contemplando y Proclamando (Gu铆a de preguntas)"):
|
209 |
+
with gr.Row():
|
210 |
+
with gr.Column():
|
211 |
+
#Answer for Contemplando y Proclamando questions
|
212 |
+
text_output_guia = gr.Textbox(label="Respuesta", lines=10)
|
213 |
+
with gr.Column():
|
214 |
+
#Button for calling AI Help
|
215 |
+
text_button = gr.Button("Buscar m谩s informaci贸n (IA)")
|
216 |
+
with gr.Column():
|
217 |
+
text_output_aiAnswer= gr.Textbox(label="Ayuda a mi respuesta", lines=10)
|
218 |
|
219 |
if __name__ == "__main__":
|
220 |
llmBuilder = GeminiLLM()
|