Ufoptg commited on
Commit
536a126
1 Parent(s): 11dfeb8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -80,6 +80,7 @@ ONLY_DEVELOPER_API_KEYS = os.environ["ONLY_DEVELOPER_API_KEYS"]
80
  HUGGING_TOKEN = random.choice([os.getenv("HUGGINGTOKEN_1"), os.getenv("HUGGINGTOKEN_2"), os.getenv("HUGGINGTOKEN_3")])
81
  ASSISTANT_GOOGLE_API_KEYS = os.environ["ASSISTANT_GOOGLE_API_KEYS"]
82
  COOKIE_BARD_TOKEN = os.environ["COOKIE_BARD_TOKEN"]
 
83
 
84
  # unlocks
85
  ORACLE_TOKEN = os.environ["ORACLE_TOKEN"]
@@ -484,7 +485,7 @@ def bing_dalle(item: BingDalle):
484
  raise HTTPException(status_code=500, detail="Invalid cookie string, check your cookie string and try again")
485
 
486
  try:
487
- response = BingImages.images.generate(
488
  prompt=item.prompt,
489
  model=item.model,
490
  )
 
80
  HUGGING_TOKEN = random.choice([os.getenv("HUGGINGTOKEN_1"), os.getenv("HUGGINGTOKEN_2"), os.getenv("HUGGINGTOKEN_3")])
81
  ASSISTANT_GOOGLE_API_KEYS = os.environ["ASSISTANT_GOOGLE_API_KEYS"]
82
  COOKIE_BARD_TOKEN = os.environ["COOKIE_BARD_TOKEN"]
83
+ BING_CLIENT = os.environ["BingClient"]
84
 
85
  # unlocks
86
  ORACLE_TOKEN = os.environ["ORACLE_TOKEN"]
 
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
  )