Helder Rodrigues commited on
Commit
64d83f5
1 Parent(s): 043696a
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,10 +1,9 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- generator = pipeline('text-generation', model='gpt2')
5
 
6
  def generate(text):
7
- classifier = pipeline("sentiment-analysis")
8
  result = classifier(text)
9
  return result
10
 
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ classifier = pipeline("sentiment-analysis")
5
 
6
  def generate(text):
 
7
  result = classifier(text)
8
  return result
9