Spaces:
Sleeping
Sleeping
Commit
·
2208db5
1
Parent(s):
e0f7486
add from fastapi.responses import HTMLResponse
Browse files
app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
from fastapi import FastAPI
|
|
|
2 |
|
3 |
app = FastAPI()
|
4 |
|
5 |
@app.get("/")
|
6 |
def read_root():
|
7 |
-
|
|
|
8 |
|
9 |
if __name__ == "__main__":
|
10 |
import uvicorn
|
|
|
1 |
from fastapi import FastAPI
|
2 |
+
from fastapi.responses import HTMLResponse
|
3 |
|
4 |
app = FastAPI()
|
5 |
|
6 |
@app.get("/")
|
7 |
def read_root():
|
8 |
+
html_content = "<p>This is a model inference point for the <a href='https://huggingface.co/spaces/vishalbakshi/isitadigit'>isitadigit</a> space</p>"
|
9 |
+
return HTMLResponse(content=html_content)
|
10 |
|
11 |
if __name__ == "__main__":
|
12 |
import uvicorn
|