Ignaciobfp commited on
Commit
edf7894
·
1 Parent(s): 47b3904

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,5 +12,5 @@ def predict(opinion):
12
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
13
 
14
  # Creamos la interfaz y la lanzamos.
15
- gr.Interface(fn=predict, inputs=gr.Textbox(lines=2, placeholder="the movie was great!"), outputs=gr.outputs.Label(num_top_classes=2),
16
  examples=['the movie was utter shit I would rater sting a stick in my eyes than seeing something remotely similar to this again', 'is the best movie i have ever seen, had action, romance, science fiction elements. As fun as movies will ever get']).launch(share=False)
 
12
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
13
 
14
  # Creamos la interfaz y la lanzamos.
15
+ gr.Interface(fn=predict, inputs=gr.Textbox(lines=2, placeholder="the movie was neither good or bad"), outputs=gr.outputs.Label(num_top_classes=2),
16
  examples=['the movie was utter shit I would rater sting a stick in my eyes than seeing something remotely similar to this again', 'is the best movie i have ever seen, had action, romance, science fiction elements. As fun as movies will ever get']).launch(share=False)