Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -63,6 +63,10 @@ def refusal_condition(query):
|
|
63 |
if is_including_tw and is_including_cn:
|
64 |
return True
|
65 |
|
|
|
|
|
|
|
|
|
66 |
return False
|
67 |
|
68 |
with gr.Blocks() as demo:
|
|
|
63 |
if is_including_tw and is_including_cn:
|
64 |
return True
|
65 |
|
66 |
+
for x in ['一個中國', '兩岸', '一中原則', '一中政策', '一个中国', '两岸', '一中原则']:
|
67 |
+
if x in query_remove_space:
|
68 |
+
return True
|
69 |
+
|
70 |
return False
|
71 |
|
72 |
with gr.Blocks() as demo:
|