Spaces:
Sleeping
Sleeping
Update all changes
Browse files
app.py
CHANGED
|
@@ -217,7 +217,7 @@ with gr.Blocks() as demo:
|
|
| 217 |
)
|
| 218 |
with gr.Tab("Contemplando y Proclamando (Guía de preguntas)"):
|
| 219 |
question_option = gr.State([])
|
| 220 |
-
with gr.Accordion("Contemplando y Proclamando", open=False):
|
| 221 |
checkButton = gr.Checkbox(
|
| 222 |
value=False,
|
| 223 |
label="Mantener historial"
|
|
@@ -256,11 +256,13 @@ with gr.Blocks() as demo:
|
|
| 256 |
text_output_aiAnswer = gr.Textbox(label="Ayuda a mi respuesta", lines = 10)
|
| 257 |
|
| 258 |
inbtwContemplandoOne.click(
|
| 259 |
-
fn =
|
| 260 |
inputs = inbtwContemplandoOne,
|
| 261 |
outputs = [text_button, question_option]
|
| 262 |
)
|
| 263 |
|
|
|
|
|
|
|
| 264 |
text_button.click(fn = showMessage, inputs = [text_output_guia, question_option], outputs = text_output_aiAnswer)
|
| 265 |
|
| 266 |
if __name__ == "__main__":
|
|
|
|
| 217 |
)
|
| 218 |
with gr.Tab("Contemplando y Proclamando (Guía de preguntas)"):
|
| 219 |
question_option = gr.State([])
|
| 220 |
+
with gr.Accordion("Contemplando y Proclamando", open = False):
|
| 221 |
checkButton = gr.Checkbox(
|
| 222 |
value=False,
|
| 223 |
label="Mantener historial"
|
|
|
|
| 256 |
text_output_aiAnswer = gr.Textbox(label="Ayuda a mi respuesta", lines = 10)
|
| 257 |
|
| 258 |
inbtwContemplandoOne.click(
|
| 259 |
+
fn = lambda x: {text_button: gr.update(interactive=True), question_option: ['DEVOCIONALMENTE']},
|
| 260 |
inputs = inbtwContemplandoOne,
|
| 261 |
outputs = [text_button, question_option]
|
| 262 |
)
|
| 263 |
|
| 264 |
+
#fn = activeSermonGuideZone,
|
| 265 |
+
|
| 266 |
text_button.click(fn = showMessage, inputs = [text_output_guia, question_option], outputs = text_output_aiAnswer)
|
| 267 |
|
| 268 |
if __name__ == "__main__":
|