wop commited on
Commit
31267be
1 Parent(s): 917c55e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,