hantech commited on
Commit
27d81b4
β€’
1 Parent(s): 5ff27bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def query(doc, labels):
32
  result={}
33
  for question in questions:
34
  QA_input = {
35
- 'question': question,
36
  'context': doc
37
  }
38
 
@@ -103,6 +103,6 @@ gr.Interface(
103
  description=description,
104
  article=article,
105
  css=css,
106
- examples=[['giaytiepnhan.jpg',['vi'],'Người nα»™p, TiαΊΏp nhαΊ­n hα»“ sΖ‘ của'],['giaytiepnhan2.jpg',['vi'],'TiαΊΏp nhαΊ­n hα»“ sΖ‘ của', 'Địa chỉ']],
107
  enable_queue=True
108
  ).launch(debug=True)
 
32
  result={}
33
  for question in questions:
34
  QA_input = {
35
+ 'question': question+'?',
36
  'context': doc
37
  }
38
 
 
103
  description=description,
104
  article=article,
105
  css=css,
106
+ examples=[['giaytiepnhan.jpg',['vi'],'Người nα»™p, TiαΊΏp nhαΊ­n hα»“ sΖ‘ của'],['giaytiepnhan2.jpg',['vi'],'MΓ£ hα»“ sΖ‘, Địa chỉ']],
107
  enable_queue=True
108
  ).launch(debug=True)