Spaces:
Runtime error
Runtime error
Commit
·
a096f66
1
Parent(s):
905a5b0
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
description = "Gradio demo for Tagalog Roberta, A Robustly Optimized BERT Pretraining Approach. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
4 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1907.11692'>RoBERTa: A Robustly Optimized BERT Pretraining Approach</a> | <a href='https://github.com/pytorch/fairseq/'>Github Repo</a></p>"
|
5 |
|
6 |
-
|
7 |
|
8 |
gr.Interface.load("huggingface/jcblaise/roberta-tagalog-large", title=None, inputs=[gr.inputs.Textbox(label="Context", lines=5, default=default_text[0]), gr.inputs.Textbox(label="Question", default=default_text[1])]).launch()
|
9 |
|
|
|
3 |
description = "Gradio demo for Tagalog Roberta, A Robustly Optimized BERT Pretraining Approach. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
4 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1907.11692'>RoBERTa: A Robustly Optimized BERT Pretraining Approach</a> | <a href='https://github.com/pytorch/fairseq/'>Github Repo</a></p>"
|
5 |
|
6 |
+
default_text = "Si Biboy ay may alagang baka. Ang pangalan ng baka ay Biko. Malusog at mataba ang alagang baka ni Biboy."
|
7 |
|
8 |
gr.Interface.load("huggingface/jcblaise/roberta-tagalog-large", title=None, inputs=[gr.inputs.Textbox(label="Context", lines=5, default=default_text[0]), gr.inputs.Textbox(label="Question", default=default_text[1])]).launch()
|
9 |
|