Spaces:
Sleeping
Sleeping
humanda5
commited on
Commit
·
24da8ec
1
Parent(s):
321847b
호스트 설정 변경
Browse files- Procfile +1 -0
- app.py +2 -1
- requirements.txt +2 -1
Procfile
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
web: gunicorn --bind 0.0.0.0:$PORT app:app
|
app.py
CHANGED
@@ -5,6 +5,7 @@ from flask import Flask, render_template, url_for, redirect
|
|
5 |
# from stock.routes.stock_route import stock_bp
|
6 |
import threading
|
7 |
import logging
|
|
|
8 |
|
9 |
# -------------------------------------------------------------------
|
10 |
# 파일 1: portfolio/app.py (수정)
|
@@ -59,4 +60,4 @@ if __name__ == '__main__':
|
|
59 |
|
60 |
# use_reloader=False는 디버그 모드에서 앱이 두 번 실행되는 것을 방지하여,
|
61 |
# 시뮬레이션 스레드가 두 번 시작되지 않도록 합니다.
|
62 |
-
app.run(
|
|
|
5 |
# from stock.routes.stock_route import stock_bp
|
6 |
import threading
|
7 |
import logging
|
8 |
+
import os
|
9 |
|
10 |
# -------------------------------------------------------------------
|
11 |
# 파일 1: portfolio/app.py (수정)
|
|
|
60 |
|
61 |
# use_reloader=False는 디버그 모드에서 앱이 두 번 실행되는 것을 방지하여,
|
62 |
# 시뮬레이션 스레드가 두 번 시작되지 않도록 합니다.
|
63 |
+
app.run(host='0.0.0.0', port=int(os.environ.get("PORT", 7860)))
|
requirements.txt
CHANGED
@@ -3,4 +3,5 @@ google-generativeai
|
|
3 |
sentence-transformers
|
4 |
faiss-cpu
|
5 |
python-dotenv
|
6 |
-
numpy
|
|
|
|
3 |
sentence-transformers
|
4 |
faiss-cpu
|
5 |
python-dotenv
|
6 |
+
numpy
|
7 |
+
gunicorn
|