Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -473,8 +473,8 @@ def gemini_pro(item: GeminiPro):
|
|
473 |
|
474 |
@app.post("/Bing/Dall-E-3")
|
475 |
async def bing_dalle(item: BingDalle):
|
476 |
-
nested_asyncio = NestedAsyncIO()
|
477 |
-
nested_asyncio.apply()
|
478 |
try:
|
479 |
set_cookies(
|
480 |
".bing.com",
|
@@ -507,7 +507,7 @@ async def bing_dalle(item: BingDalle):
|
|
507 |
return {"status": "false", "message": f"Something went wrong: {e}"}
|
508 |
|
509 |
response = await main()
|
510 |
-
nested_asyncio.revert()
|
511 |
return response
|
512 |
|
513 |
|
|
|
473 |
|
474 |
@app.post("/Bing/Dall-E-3")
|
475 |
async def bing_dalle(item: BingDalle):
|
476 |
+
# nested_asyncio = NestedAsyncIO()
|
477 |
+
# nested_asyncio.apply()
|
478 |
try:
|
479 |
set_cookies(
|
480 |
".bing.com",
|
|
|
507 |
return {"status": "false", "message": f"Something went wrong: {e}"}
|
508 |
|
509 |
response = await main()
|
510 |
+
# nested_asyncio.revert()
|
511 |
return response
|
512 |
|
513 |
|