Spaces:
Sleeping
Sleeping
Update all changes
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ HISTORY_ANSWER = ''
|
|
8 |
|
9 |
def activeSermonGuideZone(buttonEvent):
|
10 |
#print("Button show " + buttonEvent.label)
|
11 |
-
return gr.update (interactive = True)
|
12 |
|
13 |
def showMessage(questionAnswer, KEY):
|
14 |
if questionAnswer == None or questionAnswer == '' or len(questionAnswer) <= 7:
|
@@ -16,6 +16,7 @@ def showMessage(questionAnswer, KEY):
|
|
16 |
raise gr.Error(f" No implemented yet {KEY}!!!")
|
17 |
|
18 |
with gr.Blocks() as demo:
|
|
|
19 |
gr.Markdown("SermonLab AI Demo.")
|
20 |
with gr.Tab("Preparando mi Serm贸n"):
|
21 |
text_input = gr.Textbox(label="T贸pico del serm贸n")
|
@@ -215,6 +216,7 @@ with gr.Blocks() as demo:
|
|
215 |
[file_input_devotions, text_output_devotions]
|
216 |
)
|
217 |
with gr.Tab("Contemplando y Proclamando (Gu铆a de preguntas)"):
|
|
|
218 |
with gr.Accordion("Contemplando y Proclamando", open=False):
|
219 |
checkButton = gr.Checkbox(
|
220 |
value=False,
|
@@ -256,7 +258,7 @@ with gr.Blocks() as demo:
|
|
256 |
inbtwContemplandoOne.click(
|
257 |
fn = activeSermonGuideZone,
|
258 |
inputs = inbtwContemplandoOne,
|
259 |
-
outputs = [text_button]
|
260 |
)
|
261 |
|
262 |
text_button.click(fn = showMessage, inputs = [text_output_guia, 'PRUEBA'], outputs = text_output_aiAnswer)
|
|
|
8 |
|
9 |
def activeSermonGuideZone(buttonEvent):
|
10 |
#print("Button show " + buttonEvent.label)
|
11 |
+
return {text_button: gr.update (interactive = True), question_option: ['DEVOCIONALMENTE']}
|
12 |
|
13 |
def showMessage(questionAnswer, KEY):
|
14 |
if questionAnswer == None or questionAnswer == '' or len(questionAnswer) <= 7:
|
|
|
16 |
raise gr.Error(f" No implemented yet {KEY}!!!")
|
17 |
|
18 |
with gr.Blocks() as demo:
|
19 |
+
|
20 |
gr.Markdown("SermonLab AI Demo.")
|
21 |
with gr.Tab("Preparando mi Serm贸n"):
|
22 |
text_input = gr.Textbox(label="T贸pico del serm贸n")
|
|
|
216 |
[file_input_devotions, text_output_devotions]
|
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,
|
|
|
258 |
inbtwContemplandoOne.click(
|
259 |
fn = activeSermonGuideZone,
|
260 |
inputs = inbtwContemplandoOne,
|
261 |
+
outputs = [text_button, question_option]
|
262 |
)
|
263 |
|
264 |
text_button.click(fn = showMessage, inputs = [text_output_guia, 'PRUEBA'], outputs = text_output_aiAnswer)
|