Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,5 +9,5 @@ def generate(context, question):
|
|
9 |
prompt = f"question: {question} context: {context}"
|
10 |
return pipe(prompt)
|
11 |
|
12 |
-
demo = gr.Interface(fn=
|
13 |
demo.launch()
|
|
|
9 |
prompt = f"question: {question} context: {context}"
|
10 |
return pipe(prompt)
|
11 |
|
12 |
+
demo = gr.Interface(fn=generate, inputs=[gr.Text('context'),gr.Text('question')], outputs="text")
|
13 |
demo.launch()
|