Spaces:
Running
Running
Change to Docker
Browse files
app.py
CHANGED
@@ -20,9 +20,9 @@ async def api_bbb(request: TextRequest):
|
|
20 |
result = request.text + 'bbb'
|
21 |
return {"result": result}
|
22 |
|
23 |
-
|
24 |
-
def
|
25 |
-
return "
|
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__":
|