gabrielabueg commited on
Commit
2e47242
1 Parent(s): d727a02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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 = "<p style='text-align: center'><a href='https://arxiv.org/abs/1907.11692' target='_blank'>RoBERTa: A Robustly Optimized BERT Pretraining Approach</a></p>"
8
 
9
  examples = [
10
- ['The goal of life is <mask>.','roberta-base']
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="Context",lines=10),gr.inputs.Dropdown(choices=["roberta-base","roberta-tagalog-large"], type="value", default="roberta-base", label="model")],
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,