Rishabh IO
commited on
Commit
•
a5e1160
1
Parent(s):
af21950
Change the default url
Browse files
main.py
CHANGED
@@ -41,7 +41,7 @@ async def predict(item: Item):
|
|
41 |
return {"predicted_class": predicted_class}
|
42 |
|
43 |
|
44 |
-
@app.get('/
|
45 |
async def html():
|
46 |
content = open('static/index.html', 'r')
|
47 |
return content.read()
|
|
|
41 |
return {"predicted_class": predicted_class}
|
42 |
|
43 |
|
44 |
+
@app.get('/', response_class=HTMLResponse)
|
45 |
async def html():
|
46 |
content = open('static/index.html', 'r')
|
47 |
return content.read()
|