Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,6 @@ question = "Which continent is the Amazon rainforest in?"
|
|
6 |
io = gr.Interface.load("huggingface/deepset/roberta-base-squad2").launch()
|
7 |
|
8 |
def simple(context, question):
|
9 |
-
return io(context, question)[
|
10 |
|
11 |
gr.Interface(simple, ["textarea", "textbox"], "textbox"].launch()
|
|
|
6 |
io = gr.Interface.load("huggingface/deepset/roberta-base-squad2").launch()
|
7 |
|
8 |
def simple(context, question):
|
9 |
+
return io(context, question)[0]
|
10 |
|
11 |
gr.Interface(simple, ["textarea", "textbox"], "textbox"].launch()
|