Spaces:
Runtime error
Runtime error
Victoria Slocum
commited on
Commit
·
1109407
1
Parent(s):
d76ae5b
autogenerate text
Browse files
app.py
CHANGED
@@ -156,14 +156,13 @@ with demo:
|
|
156 |
with gr.Column():
|
157 |
with gr.Row():
|
158 |
with gr.Column():
|
159 |
-
gr.Markdown(" ## Choose a language model and
|
160 |
with gr.Row():
|
161 |
with gr.Column():
|
162 |
model_input = gr.Dropdown(
|
163 |
choices=models, value=DEFAULT_MODEL, interactive=True, label="Pretrained Pipelines")
|
164 |
with gr.Column():
|
165 |
-
|
166 |
-
"Get text in model language")
|
167 |
with gr.Column():
|
168 |
gr.Markdown("")
|
169 |
with gr.Column():
|
@@ -285,7 +284,7 @@ with demo:
|
|
285 |
gr.Markdown(value="\n\n\n\n")
|
286 |
span_button = gr.Button("Generate spans")
|
287 |
|
288 |
-
|
289 |
button.click(dependency, inputs=[
|
290 |
text_input, col_punct, col_phrase, compact, bg, text, model_input], outputs=depen_output)
|
291 |
button.click(
|
|
|
156 |
with gr.Column():
|
157 |
with gr.Row():
|
158 |
with gr.Column():
|
159 |
+
gr.Markdown(" ## Choose a language model and text")
|
160 |
with gr.Row():
|
161 |
with gr.Column():
|
162 |
model_input = gr.Dropdown(
|
163 |
choices=models, value=DEFAULT_MODEL, interactive=True, label="Pretrained Pipelines")
|
164 |
with gr.Column():
|
165 |
+
gr.Markdown("")
|
|
|
166 |
with gr.Column():
|
167 |
gr.Markdown("")
|
168 |
with gr.Column():
|
|
|
284 |
gr.Markdown(value="\n\n\n\n")
|
285 |
span_button = gr.Button("Generate spans")
|
286 |
|
287 |
+
model_input.change(get_text, inputs=[model_input], outputs=text_input)
|
288 |
button.click(dependency, inputs=[
|
289 |
text_input, col_punct, col_phrase, compact, bg, text, model_input], outputs=depen_output)
|
290 |
button.click(
|