amitu009 commited on
Commit
c68af9e
·
1 Parent(s): e3e3bc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
 
3
  from transformers import pipeline
4
 
5
- sentiment = pipeline("question-answering")
6
 
7
  def get_sentiment(question, context):
8
  answer = pipe(question=question, context="i am genuis")
 
2
 
3
  from transformers import pipeline
4
 
5
+ pipe = pipeline("question-answering")
6
 
7
  def get_sentiment(question, context):
8
  answer = pipe(question=question, context="i am genuis")