Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ from fastapi import FastAPI, Request
|
|
2 |
from fastapi.responses import HTMLResponse
|
3 |
from fastapi.templating import Jinja2Templates
|
4 |
from chat import chat_conversations
|
|
|
|
|
5 |
app = FastAPI()
|
6 |
|
7 |
templates = Jinja2Templates(directory="templates")
|
@@ -23,7 +25,4 @@ async def read_root(request: Request):
|
|
23 |
return response_text
|
24 |
|
25 |
|
26 |
-
if __name__ == "__main__":
|
27 |
-
import uvicorn
|
28 |
-
uvicorn.run(app, host="127.0.0.1", port=8000)
|
29 |
|
|
|
2 |
from fastapi.responses import HTMLResponse
|
3 |
from fastapi.templating import Jinja2Templates
|
4 |
from chat import chat_conversations
|
5 |
+
import spacy
|
6 |
+
spacy.load("en_core_web_lg")
|
7 |
app = FastAPI()
|
8 |
|
9 |
templates = Jinja2Templates(directory="templates")
|
|
|
25 |
return response_text
|
26 |
|
27 |
|
|
|
|
|
|
|
28 |
|