Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def generate_unknown_response():
|
|
118 |
@app.route('/search_request', methods=['POST'])
|
119 |
def generate_search_request():
|
120 |
global stop_generation
|
121 |
-
stop_generation =
|
122 |
model.reset()
|
123 |
|
124 |
|
@@ -158,7 +158,7 @@ def generate_search_request():
|
|
158 |
@app.route('/', methods=['POST'])
|
159 |
def generate_response():
|
160 |
global stop_generation
|
161 |
-
stop_generation =
|
162 |
model.reset()
|
163 |
|
164 |
data = request.get_json()
|
|
|
118 |
@app.route('/search_request', methods=['POST'])
|
119 |
def generate_search_request():
|
120 |
global stop_generation
|
121 |
+
stop_generation = True
|
122 |
model.reset()
|
123 |
|
124 |
|
|
|
158 |
@app.route('/', methods=['POST'])
|
159 |
def generate_response():
|
160 |
global stop_generation
|
161 |
+
stop_generation = True
|
162 |
model.reset()
|
163 |
|
164 |
data = request.get_json()
|