karanzrk commited on
Commit
50eec8c
·
1 Parent(s): d89da89

changes to pipeline

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def inference(text):
64
  # classifier = pipeline("text-classification", model="karanzrk/essayl0")
65
  text = "Question: " + text
66
  output = generator(text)
67
- answer = output["generated_text"]
68
  return answer
69
 
70
  # launcher = gr.Interface(
 
64
  # classifier = pipeline("text-classification", model="karanzrk/essayl0")
65
  text = "Question: " + text
66
  output = generator(text)
67
+ answer = output[0]
68
  return answer
69
 
70
  # launcher = gr.Interface(