Commit
•
3e58698
1
Parent(s):
33761d2
Update main.py
Browse files
main.py
CHANGED
@@ -66,7 +66,9 @@ class TextInput(BaseModel):
|
|
66 |
# Define the welcome endpoint
|
67 |
@app.get('/')
|
68 |
async def welcome():
|
69 |
-
|
|
|
|
|
70 |
|
71 |
# Validate input text length
|
72 |
MAX_TEXT_LENGTH = 1000
|
|
|
66 |
# Define the welcome endpoint
|
67 |
@app.get('/')
|
68 |
async def welcome():
|
69 |
+
# Redirect to the Swagger UI page
|
70 |
+
return RedirectResponse(url="/docs")
|
71 |
+
|
72 |
|
73 |
# Validate input text length
|
74 |
MAX_TEXT_LENGTH = 1000
|