Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from flask import Flask, request, Response, jsonify, stream_with_context
|
| 2 |
import requests
|
| 3 |
import json
|
| 4 |
import uuid
|
|
@@ -237,5 +237,5 @@ def list_models():
|
|
| 237 |
app.register_blueprint(api)
|
| 238 |
|
| 239 |
if __name__ == '__main__':
|
| 240 |
-
port = int(os.getenv("PORT", 7860)) # 默认
|
| 241 |
app.run(host='0.0.0.0', port=port, debug=False)
|
|
|
|
| 1 |
+
from flask import Flask, Blueprint, request, Response, jsonify, stream_with_context
|
| 2 |
import requests
|
| 3 |
import json
|
| 4 |
import uuid
|
|
|
|
| 237 |
app.register_blueprint(api)
|
| 238 |
|
| 239 |
if __name__ == '__main__':
|
| 240 |
+
port = int(os.getenv("PORT", 7860)) # 默认端口 7860
|
| 241 |
app.run(host='0.0.0.0', port=port, debug=False)
|