Spaces:
Sleeping
Sleeping
CaioXapelaum
commited on
Update main.py
Browse files
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 |
|