Spaces:
Sleeping
Sleeping
changes to pipeline
Browse files
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[
|
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(
|