Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
sachin
commited on
Commit
·
fbe40ea
1
Parent(s):
3fb3087
update-endpoitsn
Browse files- src/server/main.py +8 -7
src/server/main.py
CHANGED
@@ -29,18 +29,19 @@ app = FastAPI(
|
|
29 |
title="Dhwani API",
|
30 |
description="A multilingual AI-powered API supporting Indian languages for chat, text-to-speech, audio processing, and transcription. "
|
31 |
"**Authentication Guide:** \n"
|
32 |
-
"1. Register a new user via `/v1/register` with a POST request containing `username` and `password` (requires admin access). \n"
|
33 |
-
"
|
34 |
-
"
|
35 |
-
"All protected endpoints require this token for access.
|
|
|
36 |
version="1.0.0",
|
37 |
redirect_slashes=False,
|
38 |
openapi_tags=[
|
39 |
-
{"name": "Utility", "description": "General utility endpoints"},
|
40 |
-
{"name": "Authentication", "description": "User authentication and registration"},
|
41 |
{"name": "Chat", "description": "Chat-related endpoints"},
|
42 |
{"name": "Audio", "description": "Audio processing and TTS endpoints"},
|
43 |
-
{"name": "Translation", "description": "Text translation endpoints"}
|
|
|
|
|
44 |
],
|
45 |
)
|
46 |
|
|
|
29 |
title="Dhwani API",
|
30 |
description="A multilingual AI-powered API supporting Indian languages for chat, text-to-speech, audio processing, and transcription. "
|
31 |
"**Authentication Guide:** \n"
|
32 |
+
#"1. Register a new user via `/v1/register` with a POST request containing `username` and `password` (requires admin access). \n"
|
33 |
+
"1. Obtain an access token by sending a POST request to `/v1/token` with `username` and `password`. \n"
|
34 |
+
"2. Click the 'Authorize' button (top-right), enter your access token (e.g., `your_access_token`) in the 'bearerAuth' field, and click 'Authorize'. \n"
|
35 |
+
"All protected endpoints require this token for access. \n"
|
36 |
+
#"Only the 'admin' user (default password: adminpass) can register new users.",
|
37 |
version="1.0.0",
|
38 |
redirect_slashes=False,
|
39 |
openapi_tags=[
|
|
|
|
|
40 |
{"name": "Chat", "description": "Chat-related endpoints"},
|
41 |
{"name": "Audio", "description": "Audio processing and TTS endpoints"},
|
42 |
+
{"name": "Translation", "description": "Text translation endpoints"},
|
43 |
+
{"name": "Authentication", "description": "User authentication and registration"},
|
44 |
+
{"name": "Utility", "description": "General utility endpoints"},
|
45 |
],
|
46 |
)
|
47 |
|