Spaces:
Sleeping
Sleeping
Sandhya
commited on
Commit
·
7912f7c
1
Parent(s):
ea5ee32
First Commit
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ load_dotenv()
|
|
| 12 |
HF_TOKEN=os.getenv("HF_TOKEN")
|
| 13 |
HF_MODEL=os.getenv("HF_MODEL","Qwen/Qwen1.5-0.5B-Chat")
|
| 14 |
app=FastAPI(title="MODEL-CARD-CHATBOT")
|
| 15 |
-
app.add_middleware(CORSMiddleware,allow_origins=["*"],allow_methods=["*"],
|
| 16 |
|
| 17 |
agent_instance: Optional[Agent]=None
|
| 18 |
DEFAULT_PROVIDER:Literal['hf-inference']="hf-inference"
|
|
|
|
| 12 |
HF_TOKEN=os.getenv("HF_TOKEN")
|
| 13 |
HF_MODEL=os.getenv("HF_MODEL","Qwen/Qwen1.5-0.5B-Chat")
|
| 14 |
app=FastAPI(title="MODEL-CARD-CHATBOT")
|
| 15 |
+
app.add_middleware(CORSMiddleware,allow_origins=["*"],allow_methods=["*"],allow_headers=["*"])
|
| 16 |
|
| 17 |
agent_instance: Optional[Agent]=None
|
| 18 |
DEFAULT_PROVIDER:Literal['hf-inference']="hf-inference"
|