Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -107,7 +107,7 @@ app = FastAPI(
|
|
107 |
)
|
108 |
|
109 |
trans = SyncTranslator()
|
110 |
-
|
111 |
|
112 |
timeout = 100
|
113 |
contact_support = """
|
@@ -472,7 +472,10 @@ def gemini_pro(item: GeminiPro):
|
|
472 |
|
473 |
@app.post("/Bing/Dall-E-3")
|
474 |
async def bing_dalle(item: BingDalle):
|
475 |
-
|
|
|
|
|
|
|
476 |
try:
|
477 |
set_cookies(
|
478 |
".bing.com",
|
|
|
107 |
)
|
108 |
|
109 |
trans = SyncTranslator()
|
110 |
+
BingImages = BingClient(image_provider=BingCreateImages)
|
111 |
|
112 |
timeout = 100
|
113 |
contact_support = """
|
|
|
472 |
|
473 |
@app.post("/Bing/Dall-E-3")
|
474 |
async def bing_dalle(item: BingDalle):
|
475 |
+
try:
|
476 |
+
BingImages = await BingClient(image_provider=BingCreateImages)
|
477 |
+
except Exception:
|
478 |
+
pass
|
479 |
try:
|
480 |
set_cookies(
|
481 |
".bing.com",
|