parkerjj commited on
Commit
efad2c7
1 Parent(s): 17f3a9b

Change to Docker

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,9 +20,9 @@ async def api_bbb(request: TextRequest):
20
  result = request.text + 'bbb'
21
  return {"result": result}
22
 
23
- # Gradio 假界面,仅用于通过 Hugging Face Spaces 部署
24
- def fake_interface():
25
- return "Gradio Interface Placeholder"
26
 
27
  # 启动应用,使用环境变量指定的端口
28
  if __name__ == "__main__":
 
20
  result = request.text + 'bbb'
21
  return {"result": result}
22
 
23
+ @app.get("/")
24
+ async def root():
25
+ return {"message": "Welcome to the API. Use /api/aaa or /api/bbb for processing."}
26
 
27
  # 启动应用,使用环境变量指定的端口
28
  if __name__ == "__main__":