Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ app = FastAPI(title="ChatGPT Open-Source 1.0 Backend")
|
|
| 31 |
# Enable CORS so your GitHub site can talk to this Hugging Face Space
|
| 32 |
app.add_middleware(
|
| 33 |
CORSMiddleware,
|
| 34 |
-
allow_origins=["*"], # Change to your github.io URL for better security
|
| 35 |
allow_credentials=True,
|
| 36 |
allow_methods=["*"],
|
| 37 |
allow_headers=["*"],
|
|
|
|
| 31 |
# Enable CORS so your GitHub site can talk to this Hugging Face Space
|
| 32 |
app.add_middleware(
|
| 33 |
CORSMiddleware,
|
| 34 |
+
allow_origins=["*"], # Change to your github.io URL for better security late
|
| 35 |
allow_credentials=True,
|
| 36 |
allow_methods=["*"],
|
| 37 |
allow_headers=["*"],
|