Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ import gradio as gr
|
|
42 |
def predict(question, context):
|
43 |
input = f"Question: {question} Context: {context} Answer:"
|
44 |
predictions = pipe(input)
|
45 |
-
output = predictions["generated_text"].replace("Question", "")
|
46 |
return output
|
47 |
|
48 |
demo = gr.Interface(
|
|
|
42 |
def predict(question, context):
|
43 |
input = f"Question: {question} Context: {context} Answer:"
|
44 |
predictions = pipe(input)
|
45 |
+
output = predictions[0]["generated_text"].replace("Question", "")
|
46 |
return output
|
47 |
|
48 |
demo = gr.Interface(
|