Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,9 +10,6 @@ from fastapi.encoders import jsonable_encoder
|
|
| 10 |
|
| 11 |
app = FastAPI()
|
| 12 |
|
| 13 |
-
origins = [
|
| 14 |
-
]
|
| 15 |
-
|
| 16 |
app.add_middleware(
|
| 17 |
CORSMiddleware,
|
| 18 |
allow_origins=["*"],
|
|
@@ -190,4 +187,4 @@ async def youtube_transcript(request: Request, query: TranscriptQuery):
|
|
| 190 |
# Run the API server if this script is executed
|
| 191 |
if __name__ == "__main__":
|
| 192 |
import uvicorn
|
| 193 |
-
uvicorn.run(app, host="0.0.0.0", port=8080)
|
|
|
|
| 10 |
|
| 11 |
app = FastAPI()
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
app.add_middleware(
|
| 14 |
CORSMiddleware,
|
| 15 |
allow_origins=["*"],
|
|
|
|
| 187 |
# Run the API server if this script is executed
|
| 188 |
if __name__ == "__main__":
|
| 189 |
import uvicorn
|
| 190 |
+
uvicorn.run(app, host="0.0.0.0", port=8080)
|