Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,12 +12,11 @@ def fn(text):
|
|
12 |
uzroberta_v1(text),
|
13 |
roberta_1_8_v2(text)
|
14 |
]
|
15 |
-
demo = gr.
|
16 |
fn,
|
17 |
inputs=gr.Textbox(lines=5, max_lines=6, label="Input"),
|
18 |
outputs=[gr.Label(label="UzRoBERTa-v1"), gr.Label(label="roberta-1.8-v2")],
|
19 |
examples=examples,
|
20 |
-
src="models",
|
21 |
)
|
22 |
|
23 |
# with gr.Blocks() as demo:
|
|
|
12 |
uzroberta_v1(text),
|
13 |
roberta_1_8_v2(text)
|
14 |
]
|
15 |
+
demo = gr.Interface(
|
16 |
fn,
|
17 |
inputs=gr.Textbox(lines=5, max_lines=6, label="Input"),
|
18 |
outputs=[gr.Label(label="UzRoBERTa-v1"), gr.Label(label="roberta-1.8-v2")],
|
19 |
examples=examples,
|
|
|
20 |
)
|
21 |
|
22 |
# with gr.Blocks() as demo:
|