Spaces:
Runtime error
Runtime error
Test to not allow duplicate of space
Browse files- TextGen/__init__.py +1 -2
TextGen/__init__.py
CHANGED
@@ -4,8 +4,7 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
4 |
app = FastAPI(title="Deploying FastAPI Apps on Huggingface")
|
5 |
app.add_middleware(
|
6 |
CORSMiddleware,
|
7 |
-
allow_origins=[],
|
8 |
-
allow_origin_regex=r"^https://jofthomas-.*\.hf\.space$",
|
9 |
allow_credentials=True,
|
10 |
allow_methods=["*"],
|
11 |
allow_headers=["*"],
|
|
|
4 |
app = FastAPI(title="Deploying FastAPI Apps on Huggingface")
|
5 |
app.add_middleware(
|
6 |
CORSMiddleware,
|
7 |
+
allow_origins=["https://jofthomas-everchanging-quest.static.hf.space"],
|
|
|
8 |
allow_credentials=True,
|
9 |
allow_methods=["*"],
|
10 |
allow_headers=["*"],
|