Spaces:
Runtime error
Runtime error
Commit
·
9f1f2e1
1
Parent(s):
2e47242
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ description = "Tagalog Gradio Demo for RoBERTa. To use it, simply add your text,
|
|
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-
|
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="Input Text",lines=10),gr.Interface.load("huggingface/jcblaise/roberta-tagalog-large")
|
29 |
[gr.outputs.Label(label="Output")],
|
30 |
examples=examples,
|
31 |
article=article,
|
|
|
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-']
|
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,
|