Spaces:
Running
Running
Remove unnecesary options on first tap
Browse files
app.py
CHANGED
@@ -21,26 +21,6 @@ with gr.Blocks() as demo:
|
|
21 |
with gr.Tab("Preparando mi Sermón"):
|
22 |
text_input = gr.Textbox(label="Tópico del sermón")
|
23 |
|
24 |
-
with gr.Accordion("Contemplando y Proclamando", open = False):
|
25 |
-
checkButton = gr.Checkbox(
|
26 |
-
value=False,
|
27 |
-
label="Mantener historial"
|
28 |
-
)
|
29 |
-
with gr.Row():
|
30 |
-
with gr.Tab("Contemplando"):
|
31 |
-
inbtwContemplando = gr.Button(f"Devocionalmente: {contemplandoQuestion['DEVOCIONALMENTE']}")
|
32 |
-
inbtwContemplandoOne = gr.Button(f"Exégesis: {contemplandoQuestion['EXÉGESIS']}")
|
33 |
-
inbtwContemplandoTwo = gr.Button(f"Cristo: {contemplandoQuestion['CRISTO']}")
|
34 |
-
inbtwContemplandoTree = gr.Button(f"Arco Redentor: {contemplandoQuestion['ARCO REDENTOR']}")
|
35 |
-
inbtwContemplandoFour = gr.Button(f"Evangelión: {contemplandoQuestion['EVANGELION']}")
|
36 |
-
inbtwContemplandoFourOne = gr.Button(f"Evangelión: {contemplandoQuestion['EVANGELION_TWO']}")
|
37 |
-
|
38 |
-
with gr.Tab("Proclamando"):
|
39 |
-
inbtwProclamando = gr.Button(f"Público: {proclamandoQuestion['PÚBLICO']}")
|
40 |
-
inbtwProclamandoOne = gr.Button(f"Historia: {proclamandoQuestion['HISTORIA']}")
|
41 |
-
inbtwProclamandoTwo = gr.Button(f"Expectativas: {proclamandoQuestion['EXPECTATIVAS']}")
|
42 |
-
inbtwProclamandoTwoTwo = gr.Button(f"Expectativas: {proclamandoQuestion['EXPECTATIVAS_TWO']}")
|
43 |
-
|
44 |
text_output = gr.Textbox(label="Respuesta", lines=10)
|
45 |
|
46 |
text_button = gr.Button("Crear")
|
@@ -51,68 +31,6 @@ with gr.Blocks() as demo:
|
|
51 |
every=10
|
52 |
)
|
53 |
|
54 |
-
inbtwContemplando.click(
|
55 |
-
fn=lambda x: predictContemplando(f"DEVOCIONALMENTE"),
|
56 |
-
inputs=text_input,
|
57 |
-
outputs=text_output
|
58 |
-
)
|
59 |
-
|
60 |
-
inbtwContemplandoOne.click(
|
61 |
-
fn=lambda x: predictContemplando(f"EXÉGESIS"),
|
62 |
-
inputs=text_input,
|
63 |
-
outputs=text_output
|
64 |
-
)
|
65 |
-
|
66 |
-
inbtwContemplandoTwo.click(
|
67 |
-
fn=lambda x: predictContemplando(f"CRISTO"),
|
68 |
-
inputs=text_input,
|
69 |
-
outputs=text_output
|
70 |
-
)
|
71 |
-
|
72 |
-
inbtwContemplandoTree.click(
|
73 |
-
fn=lambda x: predictContemplando(f"ARCO REDENTOR"),
|
74 |
-
inputs=text_input,
|
75 |
-
outputs=text_output
|
76 |
-
)
|
77 |
-
|
78 |
-
inbtwContemplandoFour.click(
|
79 |
-
fn=lambda x: predictContemplando(f"EVANGELION"),
|
80 |
-
inputs=text_input,
|
81 |
-
outputs=text_output
|
82 |
-
)
|
83 |
-
|
84 |
-
inbtwContemplandoFourOne.click(
|
85 |
-
fn=lambda x: predictContemplando(f"EVANGELION_TWO"),
|
86 |
-
inputs=text_input,
|
87 |
-
outputs=text_output
|
88 |
-
)
|
89 |
-
|
90 |
-
##---------------------------------------------------------------------
|
91 |
-
|
92 |
-
inbtwProclamando.click(
|
93 |
-
fn=lambda x: predictProclamando(f"PÚBLICO"),
|
94 |
-
inputs=text_input,
|
95 |
-
outputs=text_output
|
96 |
-
)
|
97 |
-
|
98 |
-
inbtwProclamandoOne.click(
|
99 |
-
fn=lambda x: predictProclamando(f"HISTORIA"),
|
100 |
-
inputs=text_input,
|
101 |
-
outputs=text_output
|
102 |
-
)
|
103 |
-
|
104 |
-
inbtwProclamandoTwo.click(
|
105 |
-
fn=lambda x: predictProclamando(f"EXPECTATIVAS"),
|
106 |
-
inputs=text_input,
|
107 |
-
outputs=text_output
|
108 |
-
)
|
109 |
-
|
110 |
-
inbtwProclamandoTwoTwo.click(
|
111 |
-
fn=lambda x: predictProclamando(f"EXPECTATIVAS_TWO"),
|
112 |
-
inputs=text_input,
|
113 |
-
outputs=text_output
|
114 |
-
)
|
115 |
-
|
116 |
text_button.click(
|
117 |
fn=predictFromInit,
|
118 |
inputs=text_input,
|
|
|
21 |
with gr.Tab("Preparando mi Sermón"):
|
22 |
text_input = gr.Textbox(label="Tópico del sermón")
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
text_output = gr.Textbox(label="Respuesta", lines=10)
|
25 |
|
26 |
text_button = gr.Button("Crear")
|
|
|
31 |
every=10
|
32 |
)
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
text_button.click(
|
35 |
fn=predictFromInit,
|
36 |
inputs=text_input,
|