mirror of
https://github.com/BoardWare-Genius/jarvis-models.git
synced 2025-12-13 16:53:24 +00:00
code updated
This commit is contained in:
10
main.py
10
main.py
@ -8,9 +8,19 @@ from src.dotchain.runtime.tokenizer import Tokenizer
|
||||
from src.dotchain.runtime.runtime import Runtime
|
||||
from src.blackbox.blackbox_factory import BlackboxFactory
|
||||
import uvicorn
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"],
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
|
||||
blackbox_factory = BlackboxFactory()
|
||||
|
||||
@app.post("/")
|
||||
|
||||
Reference in New Issue
Block a user