Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -469,7 +469,7 @@ async def gemini_pro(item: GeminiPro):
|
|
| 469 |
)
|
| 470 |
|
| 471 |
|
| 472 |
-
BingImages = BingClient
|
| 473 |
|
| 474 |
|
| 475 |
@app.post("/Bing/Dall-E-3")
|
|
@@ -485,7 +485,7 @@ def bing_dalle(item: BingDalle):
|
|
| 485 |
raise HTTPException(status_code=500, detail="Invalid cookie string, check your cookie string and try again")
|
| 486 |
|
| 487 |
try:
|
| 488 |
-
response =
|
| 489 |
prompt=item.prompt,
|
| 490 |
model=item.model,
|
| 491 |
)
|
|
|
|
| 469 |
)
|
| 470 |
|
| 471 |
|
| 472 |
+
BingImages = BingClient
|
| 473 |
|
| 474 |
|
| 475 |
@app.post("/Bing/Dall-E-3")
|
|
|
|
| 485 |
raise HTTPException(status_code=500, detail="Invalid cookie string, check your cookie string and try again")
|
| 486 |
|
| 487 |
try:
|
| 488 |
+
response = BingImages.images.generate(
|
| 489 |
prompt=item.prompt,
|
| 490 |
model=item.model,
|
| 491 |
)
|