Skip to content

Commit 52f500e

Browse files
committed
修改文件夹内文件框架,更改命令
1 parent fe77119 commit 52f500e

10 files changed

+7052
-10
lines changed
File renamed without changes.

Gunicorn_config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
#进程名称
88
proc_name = 'DCNN_app'
99
#日志文件
10-
accesslog = '/home/moeus/DCNN_backend/access.log'
10+
accesslog = '-'
1111
#报错日志
12-
errorlog ='/home/moeus/DCNN_backend/error.log'
12+
errorlog ='-'

TEST.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
from concurrent.futures import ThreadPoolExecutor
66

77
#请求的地址和端口,路由为/predict
8-
# url = 'https://dcnn-backend.onrender.com/predict'
98
url = 'https://moving-dashing-sawfly.ngrok-free.app/predict'
10-
# url="https://113.219.237.121:48110//predict"
9+
1110

1211
def run():
1312
try:
14-
data = pd.read_csv('model_file/data.csv')
13+
data = pd.read_csv('data.csv')
1514
num = random.randint(0, 7000)
1615
data = data[['是否老年人', '是否有配偶', '是否经济独立', '用户入网时间', '是否开通多条电话业务', '是否开通互联网服务',
1716
'是否开通网络安全服务', '是否开通在线备份服务', '是否开通设备保护服务', '是否开通技术支持业务', '是否开通网络电视',

__pycache__/solution.cpython-312.pyc

2.49 KB
Binary file not shown.

data.csv

+7,044
Large diffs are not rendered by default.
File renamed without changes.

model_file(DESKTOP-UD4QVEV)/空白X特征.csv

-1
This file was deleted.
File renamed without changes.

run_command.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sudo lsof -i :80
2525

2626
#ngrok运行
2727

28-
ngrok http --url=moving-dashing-sawfly.ngrok-free.app 80
28+
ngrok http --url=moving-dashing-sawfly.ngrok-free.app 8000
2929

3030
#ngrok后台运行情况查看,服务器内
3131
http://localhost:4040

solution.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#环境变量
66
os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'
77
# 读取pkl模型
8-
ordina_lencoder = joblib.load('model_file/ordina_lencoder.pkl')
9-
min_max_scaler = joblib.load('model_file/min_max_scaler.pkl')
10-
model = keras.models.load_model('model_file/ANN_model.keras')
8+
ordina_lencoder = joblib.load('ordina_lencoder.pkl')
9+
min_max_scaler = joblib.load('min_max_scaler.pkl')
10+
model = keras.models.load_model('ANN_model.keras')
1111

1212
col=['是否老年人', '是否有配偶', '是否经济独立', '用户入网时间', '是否开通多条电话业务', '是否开通互联网服务',
1313
'是否开通网络安全服务', '是否开通在线备份服务', '是否开通设备保护服务', '是否开通技术支持业务', '是否开通网络电视',

0 commit comments

Comments
 (0)