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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -28,14 +28,8 @@ def predict_sentiment(text_input, model_selection):
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")
 
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")