aniudupa commited on
Commit
3d29999
·
verified ·
1 Parent(s): 6533546

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,4 +1,5 @@
1
  from fastapi import APIRouter, HTTPException
 
2
  from pydantic import BaseModel
3
  from pathlib import Path
4
  import os
@@ -20,6 +21,9 @@ os.environ["TOGETHER_AI_API"] = "1c27fe0df51a29edee1bec6b4b648b436cc80cf4ccc36f5
20
  os.environ['TRANSFORMERS_CACHE'] = '/tmp/cache'
21
 
22
  # Initialize FastAPI Router
 
 
 
23
  router = APIRouter()
24
  bot_name = "LawGPT"
25
 
 
1
  from fastapi import APIRouter, HTTPException
2
+ from fastapi import FastAP
3
  from pydantic import BaseModel
4
  from pathlib import Path
5
  import os
 
21
  os.environ['TRANSFORMERS_CACHE'] = '/tmp/cache'
22
 
23
  # Initialize FastAPI Router
24
+ app = FastAPI()
25
+ # Include the router
26
+ app.include_router(router)
27
  router = APIRouter()
28
  bot_name = "LawGPT"
29