ethanrom commited on
Commit
d5e5a95
1 Parent(s): aaf9b07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -28,8 +28,14 @@ def predict_sentiment(text_input, model_selection):
28
  return predicted_class
29
 
30
  inputs = [
31
- gr.inputs.Textbox("Enter text"),
32
- gr.inputs.Dropdown(["Pretrained", "Fine-tuned"], label="Select model"),
 
 
 
 
 
 
33
  ]
34
 
35
  outputs = gr.outputs.Textbox(label="Predicted Sentiment")
 
28
  return predicted_class
29
 
30
  inputs = [
31
+ gr.inputs.Textbox("Enter text", examples=[
32
+ "Max laid his hand upon the old man's arm",
33
+ "The red sword sealed their vows!",
34
+ "And that is why, the lonesome day, it flows so long as falls the rain",
35
+ "Thy hands all cunning arts that women prize",
36
+ "On us lift up the light"
37
+ ]),
38
+ gr.inputs.Dropdown(["Pretrained", "Fine-tuned"], label="Select model", default="Pretrained"),
39
  ]
40
 
41
  outputs = gr.outputs.Textbox(label="Predicted Sentiment")