Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def query(payload):
|
|
13 |
def query2(q, c):
|
14 |
payload = {"question": q, "context": c}
|
15 |
response = requests.post(API_URL2, headers=headers2, json=payload)
|
16 |
-
return response.json()
|
17 |
|
18 |
iface = gr.Interface(
|
19 |
fn=query2,
|
|
|
13 |
def query2(q, c):
|
14 |
payload = {"question": q, "context": c}
|
15 |
response = requests.post(API_URL2, headers=headers2, json=payload)
|
16 |
+
return response.json()['answer']
|
17 |
|
18 |
iface = gr.Interface(
|
19 |
fn=query2,
|