Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -58,11 +58,12 @@ def chatgpt4(text):
58
  r = random.randint(0, 1)
59
 
60
  if r == 0:
61
- chat = s.get(f"http://www.mahrez.iapp.ir/Gpt/?text={text}").json()["message"]
62
  return chat
 
63
  else:
64
  chat_2 = s.get(f"http://api-free.ir/api/chat.php?text={text}").json()["result"]
65
- return chat_2
66
  def download_logo_and_save(text):
67
  random_logo_url = fetch_random_logo(text)
68
  if random_logo_url:
 
58
  r = random.randint(0, 1)
59
 
60
  if r == 0:
61
+ chat = s.get(f"http://api-free.ir/api/bard.php?text={text}").json()["result"]
62
  return chat
63
+
64
  else:
65
  chat_2 = s.get(f"http://api-free.ir/api/chat.php?text={text}").json()["result"]
66
+ return chat_2
67
  def download_logo_and_save(text):
68
  random_logo_url = fetch_random_logo(text)
69
  if random_logo_url: