CaioXapelaum commited on
Commit
7011d6a
·
verified ·
1 Parent(s): 4f88cb7

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -1,10 +1,10 @@
1
  import aiohttp
2
  from fastapi import FastAPI
3
- from fastapi.responses import JSONResponse
4
 
5
  app = FastAPI()
6
 
7
- @app.get('/')
8
  async def homepage():
9
  return "Request or go to /v1/models to use the space, make sure its a GET"
10
 
 
1
  import aiohttp
2
  from fastapi import FastAPI
3
+ from fastapi.responses import JSONResponse, PlainTextResponse
4
 
5
  app = FastAPI()
6
 
7
+ @app.get('/', response_class=PlainTextResponse)
8
  async def homepage():
9
  return "Request or go to /v1/models to use the space, make sure its a GET"
10