Spaces:
Running
Running
Commit
·
0c17fdc
1
Parent(s):
a03c53c
Add application file
Browse files
app.py
CHANGED
|
@@ -101,6 +101,10 @@ async def chat_completion(request: ChatCompletionRequest = Body(...)):
|
|
| 101 |
}]
|
| 102 |
}
|
| 103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
@app.on_event("startup")
|
| 105 |
def startup_event():
|
| 106 |
# In Hugging Face Spaces, the application is usually accessible at https://<space_name>.hf.space
|
|
|
|
| 101 |
}]
|
| 102 |
}
|
| 103 |
|
| 104 |
+
@app.get("/")
|
| 105 |
+
def index():
|
| 106 |
+
return {"message": "مرحباً بكم في واجهة API الخاصة بـ UI-TARS-7B-DPO. استخدم /chat/completions لإرسال الطلبات."}
|
| 107 |
+
|
| 108 |
@app.on_event("startup")
|
| 109 |
def startup_event():
|
| 110 |
# In Hugging Face Spaces, the application is usually accessible at https://<space_name>.hf.space
|