montoliu commited on
Commit
5aafec7
·
verified ·
1 Parent(s): 0bb2f7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,5 +1,3 @@
1
- pip install transformers, gradio
2
-
3
  from transformers import pipeline
4
  import gradio as gr
5
 
@@ -11,4 +9,5 @@ def predict(prompt):
11
  score = result[0]["score"]
12
  return label + " " + str(score)
13
 
14
- gr.Interface(fn=predict, inputs="text", outputs="text").launch()
 
 
 
 
1
  from transformers import pipeline
2
  import gradio as gr
3
 
 
9
  score = result[0]["score"]
10
  return label + " " + str(score)
11
 
12
+ gr.Interface(fn=predict, inputs="text", outputs="text")
13
+ gr.launch()