Update main.py
Browse files
main.py
CHANGED
|
@@ -75,9 +75,7 @@ async def submit_image_generation(prompt: str, size: str = "1024x1024") -> str:
|
|
| 75 |
"authorization": f"Bearer {BEARER_TOKEN}",
|
| 76 |
"content-type": "application/json",
|
| 77 |
"origin": "https://desktop.captions.ai",
|
| 78 |
-
"user-agent": "
|
| 79 |
-
user: Optional[str
|
| 80 |
-
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
|
| 81 |
"x-app-version": "1.0.0",
|
| 82 |
"x-captions-user-timezone": "UTC",
|
| 83 |
"x-device-id": str(uuid.uuid4()).replace("-", "")
|
|
|
|
| 75 |
"authorization": f"Bearer {BEARER_TOKEN}",
|
| 76 |
"content-type": "application/json",
|
| 77 |
"origin": "https://desktop.captions.ai",
|
| 78 |
+
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
|
|
|
|
|
|
|
| 79 |
"x-app-version": "1.0.0",
|
| 80 |
"x-captions-user-timezone": "UTC",
|
| 81 |
"x-device-id": str(uuid.uuid4()).replace("-", "")
|