Noveramaaz commited on
Commit
3e58698
1 Parent(s): 33761d2

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -1
main.py CHANGED
@@ -66,7 +66,9 @@ class TextInput(BaseModel):
66
  # Define the welcome endpoint
67
  @app.get('/')
68
  async def welcome():
69
- return "Welcome to our Text Classification API"
 
 
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