He Bo commited on
Commit
c7be2db
•
1 Parent(s): f0cd818
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -65,6 +65,9 @@ Please automatically generate as many questions as possible based on this manual
65
 
66
  def get_answer(question,session_id,language,prompt,search_engine,index,top_k,score_type_checklist):
67
 
 
 
 
68
  if len(question) > 0:
69
  url = api + question
70
  else:
@@ -75,11 +78,6 @@ def get_answer(question,session_id,language,prompt,search_engine,index,top_k,sco
75
  # task = 'qa'
76
  # url += ('&task='+task)
77
 
78
- question=question.replace('AWS','亚马逊云科技').replace('aws','亚马逊云科技').replace('Aws','亚马逊云科技')
79
- print('question:',question)
80
-
81
- # if question.find('电商')>=0 or question.find('开店')>=0 or question.find('亚马逊')>=0:
82
-
83
  task = 'qa'
84
  url += ('&task='+task)
85
 
 
65
 
66
  def get_answer(question,session_id,language,prompt,search_engine,index,top_k,score_type_checklist):
67
 
68
+ question=question.replace('AWS','亚马逊云科技').replace('aws','亚马逊云科技').replace('Aws','亚马逊云科技')
69
+ print('question:',question)
70
+
71
  if len(question) > 0:
72
  url = api + question
73
  else:
 
78
  # task = 'qa'
79
  # url += ('&task='+task)
80
 
 
 
 
 
 
81
  task = 'qa'
82
  url += ('&task='+task)
83