Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,13 +10,15 @@ examples = [
|
|
10 |
|
11 |
def fn(text):
|
12 |
uzroberta_v1 = pipeline("fill-mask", model="sinonimayzer/UzRoBERTa-v1")
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
16 |
demo = gr.load(
|
17 |
"sinonimayzer/UzRoBERTa-v1",
|
18 |
inputs=gr.Textbox(lines=5, max_lines=6, label="Input"),
|
19 |
-
outputs=gr.Label(label="
|
20 |
examples=examples,
|
21 |
src="models",
|
22 |
)
|
|
|
10 |
|
11 |
def fn(text):
|
12 |
uzroberta_v1 = pipeline("fill-mask", model="sinonimayzer/UzRoBERTa-v1")
|
13 |
+
roberta_1_8_v2 = pipeline("fill-mask", model="sinonimayzer/roberta-1.8-v2")
|
14 |
+
return [
|
15 |
+
uzroberta_v1(text),
|
16 |
+
roberta_1_8_v2(text)
|
17 |
+
]
|
18 |
demo = gr.load(
|
19 |
"sinonimayzer/UzRoBERTa-v1",
|
20 |
inputs=gr.Textbox(lines=5, max_lines=6, label="Input"),
|
21 |
+
outputs=[gr.Label(label="UzRoBERTa-v1"), gr.Label(label="roberta-1.8-v2")],
|
22 |
examples=examples,
|
23 |
src="models",
|
24 |
)
|