Ufoptg commited on
Commit
bb3984f
·
verified ·
1 Parent(s): 9e3220b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
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