Spaces:
Runtime error
Runtime error
Commit
·
f59a70d
1
Parent(s):
9a0d5e0
Update main.py
Browse files
main.py
CHANGED
@@ -226,7 +226,7 @@ def chat():
|
|
226 |
|
227 |
|
228 |
@app.route('/generateQuestions', methods=['OPTIONS'])
|
229 |
-
def
|
230 |
response = make_response()
|
231 |
response.headers.add("Access-Control-Allow-Origin", "*")
|
232 |
response.headers.add("Access-Control-Allow-Methods", "POST")
|
|
|
226 |
|
227 |
|
228 |
@app.route('/generateQuestions', methods=['OPTIONS'])
|
229 |
+
def options_generate():
|
230 |
response = make_response()
|
231 |
response.headers.add("Access-Control-Allow-Origin", "*")
|
232 |
response.headers.add("Access-Control-Allow-Methods", "POST")
|