tonydong365 commited on
Commit ·
75af87d
1
Parent(s): 9f4c8e2
Fix bugs
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ mod = [1357078628969746462, 1357079285113819146, 1436537252317626449, 1357079707
|
|
| 32 |
# --- 1. FastAPI 保活 ---
|
| 33 |
app = FastAPI()
|
| 34 |
@app.route('/')
|
| 35 |
-
def home(request): return {"
|
| 36 |
|
| 37 |
def run_flask():
|
| 38 |
# Hugging Face 默认使用 7860 端口
|
|
|
|
| 32 |
# --- 1. FastAPI 保活 ---
|
| 33 |
app = FastAPI()
|
| 34 |
@app.route('/')
|
| 35 |
+
def home(request): return {"status": "hi"} # 必须返回一个可以 JSON 化的对象
|
| 36 |
|
| 37 |
def run_flask():
|
| 38 |
# Hugging Face 默认使用 7860 端口
|