ansegura commited on
Commit
110dbf6
1 Parent(s): 744ffa5

Update App

Browse files

Added example sentences.

Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,9 +1,8 @@
1
  import gradio as gr
2
 
3
- def arg_detection(text):
4
-
5
- return text
6
 
7
  # Write 1 line of Python to create a simple GUI
8
- # gr.Interface(fn=arg_detection, inputs="text", outputs="text", title="Argument detection task").launch()
9
- gr.Interface.load("huggingface/chkla/roberta-argument", title="Argument detection task").launch()
 
1
  import gradio as gr
2
 
3
+ # Example sentences
4
+ examples = [["It has been determined that the amount of greenhouse gases have decreased by almost half because of the prevalence in the utilization of nuclear power."],
5
+ ["The Moon's orbit around Earth has"]]
6
 
7
  # Write 1 line of Python to create a simple GUI
8
+ gr.Interface.load("huggingface/chkla/roberta-argument", examples=examples, title="Argument detection task").launch()