Spaces:
Sleeping
Sleeping
gabrielabueg
commited on
Commit
•
2e47242
1
Parent(s):
d727a02
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
title = "RoBERTa"
|
4 |
|
5 |
-
description = "Gradio Demo for RoBERTa. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
6 |
|
7 |
-
article = "
|
8 |
|
9 |
examples = [
|
10 |
-
['
|
11 |
]
|
12 |
|
13 |
io1 = gr.Interface.load("huggingface/roberta-base")
|
@@ -25,7 +25,7 @@ def inference(inputtext, model):
|
|
25 |
|
26 |
gr.Interface(
|
27 |
inference,
|
28 |
-
[gr.inputs.Textbox(label="
|
29 |
[gr.outputs.Label(label="Output")],
|
30 |
examples=examples,
|
31 |
article=article,
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
title = "Tagalog RoBERTa"
|
4 |
|
5 |
+
description = "Tagalog Gradio Demo for RoBERTa. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
6 |
|
7 |
+
article = "Improving Large-scale Language Models and Resources for Filipino,Jan Christian Blaise Cruz and Charibeth Cheng,arXiv preprint arXiv:2111.06053,2021"
|
8 |
|
9 |
examples = [
|
10 |
+
['Ang alaga ni Biboy ay <mask>.','roberta-base']
|
11 |
]
|
12 |
|
13 |
io1 = gr.Interface.load("huggingface/roberta-base")
|
|
|
25 |
|
26 |
gr.Interface(
|
27 |
inference,
|
28 |
+
[gr.inputs.Textbox(label="Input Text",lines=10),gr.Interface.load("huggingface/jcblaise/roberta-tagalog-large"))],
|
29 |
[gr.outputs.Label(label="Output")],
|
30 |
examples=examples,
|
31 |
article=article,
|