ethanrom commited on
Commit
e1eeba3
1 Parent(s): cbb33a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -34,4 +34,11 @@ inputs = [
34
 
35
  outputs = gr.outputs.Textbox(label="Predicted Sentiment")
36
 
37
- gr.Interface(fn=predict_sentiment, inputs=inputs, outputs=outputs, title="Sentiment Analysis", description="Compare the output of two models").launch();
 
 
 
 
 
 
 
 
34
 
35
  outputs = gr.outputs.Textbox(label="Predicted Sentiment")
36
 
37
+ gr.Interface(fn=predict_sentiment, inputs=inputs, outputs=outputs, title="Sentiment Analysis", description="Compare the output of two models", examples=[
38
+ ["max laid his hand upon the old man's arm", "Pretrained Model", "", ""],
39
+ ["the red sword sealed their vows!", "Fine-tuned Model", "ethanrom/a2", "ethanrom/a2"],
40
+ ["and that is why, the lonesome day,", "Pretrained Model", "", ""],
41
+ ["it flows so long as falls the rain", "Fine-tuned Model", "ethanrom/a2", "ethanrom/a2"],
42
+ ["thy hands all cunning arts that women prize", "Pretrained Model", "", ""],
43
+ ["on us lift up the light", "Fine-tuned Model", "ethanrom/a2", "ethanrom/a2"],
44
+ ],).launch();