Spaces:
Running
Running
Germano Cavalcante
commited on
Commit
•
1417758
1
Parent(s):
a2e26d5
Fix error in las commit
Browse files
main.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
|
3 |
from fastapi import FastAPI
|
4 |
from fastapi.middleware.cors import CORSMiddleware
|
|
|
5 |
from fastapi.staticfiles import StaticFiles
|
6 |
from huggingface_hub import login
|
7 |
from config import settings
|
@@ -33,7 +34,7 @@ app.include_router(
|
|
33 |
tool_calls.router, prefix="/api/v1", tags=["Function Calls"])
|
34 |
|
35 |
|
36 |
-
@app.get("/")
|
37 |
async def root():
|
38 |
return """
|
39 |
<!DOCTYPE html>
|
|
|
2 |
|
3 |
from fastapi import FastAPI
|
4 |
from fastapi.middleware.cors import CORSMiddleware
|
5 |
+
from fastapi.responses import HTMLResponse
|
6 |
from fastapi.staticfiles import StaticFiles
|
7 |
from huggingface_hub import login
|
8 |
from config import settings
|
|
|
34 |
tool_calls.router, prefix="/api/v1", tags=["Function Calls"])
|
35 |
|
36 |
|
37 |
+
@app.get("/", response_class=HTMLResponse)
|
38 |
async def root():
|
39 |
return """
|
40 |
<!DOCTYPE html>
|