Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ from diffusers import StableDiffusionImg2ImgPipeline, DiffusionPipeline
|
|
| 5 |
from starlette.responses import StreamingResponse
|
| 6 |
from fastapi.responses import FileResponse
|
| 7 |
import io
|
|
|
|
| 8 |
|
| 9 |
app = FastAPI()
|
| 10 |
|
|
|
|
| 5 |
from starlette.responses import StreamingResponse
|
| 6 |
from fastapi.responses import FileResponse
|
| 7 |
import io
|
| 8 |
+
from fastapi.middleware.cors import CORSMiddleware
|
| 9 |
|
| 10 |
app = FastAPI()
|
| 11 |
|