Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def full_interface(prompt, max_new_tokens, top_k, temperature, top_p, repetition
|
|
85 |
return generated_text, generated_highlight, pos_count_input, html_input, gr.update(visible=True), generated_text, gr.update(visible=False), gr.update(visible=True)
|
86 |
|
87 |
def reset_interface():
|
88 |
-
return gr.update(visible=True), gr.update(visible=False), gr.update(visible=False)
|
89 |
|
90 |
with gr.Blocks(theme=gr.themes.Base()) as iface:
|
91 |
|
@@ -114,7 +114,7 @@ with gr.Blocks(theme=gr.themes.Base()) as iface:
|
|
114 |
send_button.click(
|
115 |
generate_dependency_parse,
|
116 |
inputs=[generated_text_output],
|
117 |
-
outputs=[dependency_parse_generated]
|
118 |
)
|
119 |
|
120 |
reset_button = gr.Button(value="♻️Start Again", visible=False)
|
@@ -129,7 +129,7 @@ with gr.Blocks(theme=gr.themes.Base()) as iface:
|
|
129 |
reset_button.click(
|
130 |
reset_interface,
|
131 |
inputs=None,
|
132 |
-
outputs=[generate_button, send_button, reset_button]
|
133 |
)
|
134 |
|
135 |
-
iface.launch()
|
|
|
85 |
return generated_text, generated_highlight, pos_count_input, html_input, gr.update(visible=True), generated_text, gr.update(visible=False), gr.update(visible=True)
|
86 |
|
87 |
def reset_interface():
|
88 |
+
return gr.update(visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
|
89 |
|
90 |
with gr.Blocks(theme=gr.themes.Base()) as iface:
|
91 |
|
|
|
114 |
send_button.click(
|
115 |
generate_dependency_parse,
|
116 |
inputs=[generated_text_output],
|
117 |
+
outputs=[dependency_parse_generated, gr.update(visible=True)]
|
118 |
)
|
119 |
|
120 |
reset_button = gr.Button(value="♻️Start Again", visible=False)
|
|
|
129 |
reset_button.click(
|
130 |
reset_interface,
|
131 |
inputs=None,
|
132 |
+
outputs=[generate_button, send_button, reset_button, generated_text_output, dependency_parse_generated]
|
133 |
)
|
134 |
|
135 |
+
iface.launch()
|