He Bo
commited on
Commit
•
c961a3a
1
Parent(s):
e87ae5d
updata
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ def get_answer(question,session_id,language,prompt,index,top_k,temperature):
|
|
108 |
if len(index) > 0:
|
109 |
url += ('&index='+index)
|
110 |
else:
|
111 |
-
if language.find("chinese")
|
112 |
url += ('&index='+chinese_index)
|
113 |
elif language == "english" and len(english_index) >0:
|
114 |
url += ('&index='+english_index)
|
|
|
108 |
if len(index) > 0:
|
109 |
url += ('&index='+index)
|
110 |
else:
|
111 |
+
if language.find("chinese") >= 0 and len(chinese_index) >0:
|
112 |
url += ('&index='+chinese_index)
|
113 |
elif language == "english" and len(english_index) >0:
|
114 |
url += ('&index='+english_index)
|