Ufoptg commited on
Commit
5696a9e
1 Parent(s): 536a126

Update main.py

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