Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ genai.configure(api_key="AIzaSyBGhEOy-JYMzGtTcRjBjP51OGR168WKRFw")
|
|
| 37 |
|
| 38 |
|
| 39 |
@app.post("/upload-image/{prompt}")
|
| 40 |
-
async def upload_image(file: UploadFile = File(...)
|
| 41 |
os.makedirs("uploads", exist_ok=True)
|
| 42 |
|
| 43 |
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
@app.post("/upload-image/{prompt}")
|
| 40 |
+
async def upload_image(prompt: str, file: UploadFile = File(...)):
|
| 41 |
os.makedirs("uploads", exist_ok=True)
|
| 42 |
|
| 43 |
|