Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,7 +116,8 @@ def getprjnamesfromTestAPI():
|
|
| 116 |
yield f"data: 100\n\n"
|
| 117 |
result = json.dumps([prjnames,prjids])
|
| 118 |
yield f"data: {result}\n\n"
|
| 119 |
-
return Response(generate_progressProjnames(), content_type='text/event-stream')
|
|
|
|
| 120 |
|
| 121 |
|
| 122 |
@app.route('/getprojectparts/<jsdata>',methods=['GET'])
|
|
|
|
| 116 |
yield f"data: 100\n\n"
|
| 117 |
result = json.dumps([prjnames,prjids])
|
| 118 |
yield f"data: {result}\n\n"
|
| 119 |
+
return Response(generate_progressProjnames(), content_type='text/event-stream', headers={"Cache-Control": "no-cache", "X-Accel-Buffering": "no"})
|
| 120 |
+
|
| 121 |
|
| 122 |
|
| 123 |
@app.route('/getprojectparts/<jsdata>',methods=['GET'])
|