Ufoptg commited on
Commit
4c9168b
·
verified ·
1 Parent(s): 43f7b7c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
main.py CHANGED
@@ -18,7 +18,6 @@
18
  # along with this program. If not, see <https://www.gnu.org/licenses/>.
19
 
20
  import asyncio
21
- from nest_asyncio import NestedAsyncIO
22
  import base64
23
  import json
24
  import logging
@@ -108,7 +107,6 @@ app = FastAPI(
108
  )
109
 
110
  trans = SyncTranslator()
111
- BingImages = await BingClient()
112
 
113
  timeout = 100
114
  contact_support = """
@@ -473,6 +471,7 @@ def gemini_pro(item: GeminiPro):
473
 
474
  @app.post("/Bing/Dall-E-3")
475
  async def bing_dalle(item: BingDalle):
 
476
  try:
477
  set_cookies(
478
  ".bing.com",
 
18
  # along with this program. If not, see <https://www.gnu.org/licenses/>.
19
 
20
  import asyncio
 
21
  import base64
22
  import json
23
  import logging
 
107
  )
108
 
109
  trans = SyncTranslator()
 
110
 
111
  timeout = 100
112
  contact_support = """
 
471
 
472
  @app.post("/Bing/Dall-E-3")
473
  async def bing_dalle(item: BingDalle):
474
+ BingImages = await BingClient()
475
  try:
476
  set_cookies(
477
  ".bing.com",