Skip to content

Commit

Permalink
Merge pull request chenfei-wu#404 from dawnmsg/main
Browse files Browse the repository at this point in the history
Revise codes for alerts
  • Loading branch information
shengming-yin authored May 25, 2023
2 parents d0fc855 + a8abe0e commit ed93296
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions LowCodeLLM/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_workflow():
except Exception as e:
app.logger.error(
'failed to get_workflow, msg:%s, request data:%s' % (str(e), request.json))
return {'errmsg': str(e)}, 500
return {'errmsg': 'internal errors'}, 500

@app.route('/api/extend_workflow', methods=['POST'])
@cross_origin()
Expand All @@ -47,7 +47,7 @@ def extend_workflow():
except Exception as e:
app.logger.error(
'failed to extend_workflow, msg:%s, request data:%s' % (str(e), request.json))
return {'errmsg': str(e)}, 500
return {'errmsg': 'internal errors'}, 500

@app.route('/api/execute', methods=['POST'])
@cross_origin()
Expand All @@ -63,4 +63,4 @@ def execute():
except Exception as e:
app.logger.error(
'failed to execute, msg:%s, request data:%s' % (str(e), request.json))
return {'errmsg': str(e)}, 500
return {'errmsg': 'internal errors'}, 500
4 changes: 2 additions & 2 deletions LowCodeLLM/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Flask==2.2.3
Flask==2.2.5
Flask_Cors==3.0.10
openai==0.27.2
gunicorn==20.1.0
gevent==21.8.0
gevent==21.8.0

0 comments on commit ed93296

Please sign in to comment.