Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -7,6 +7,7 @@ from dotenv import load_dotenv
|
|
7 |
import os
|
8 |
from fastapi import FastAPI
|
9 |
from pydantic import BaseModel
|
|
|
10 |
|
11 |
# Retrieve environment variables
|
12 |
TOGETHER_API_KEY = os.getenv("TOGETHER_API_KEY")
|
|
|
7 |
import os
|
8 |
from fastapi import FastAPI
|
9 |
from pydantic import BaseModel
|
10 |
+
from fastapi.middleware.cors import CORSMiddleware
|
11 |
|
12 |
# Retrieve environment variables
|
13 |
TOGETHER_API_KEY = os.getenv("TOGETHER_API_KEY")
|