prlabs2023 commited on
Commit
11a01db
·
1 Parent(s): 8433386

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
app.py CHANGED
@@ -113,17 +113,22 @@ def do_delete():
113
  continue
114
 
115
  def do_ping():
116
- url = 'https://open-ai-ping-eight.vercel.app/'
117
- url1 = 'https://open-ai-ping-eight.vercel.app/1'
118
- url2 = 'https://open-ai-ping-eight.vercel.app/2'
 
 
 
 
 
 
119
 
120
  while True:
121
  try:
122
 
123
  print("inside vercel ping ")
124
- x = requests.get(url)
125
- x = requests.get(url1)
126
- x = requests.get(url2)
127
 
128
  time.sleep(60)
129
  print("ping done")
 
113
  continue
114
 
115
  def do_ping():
116
+ # url = 'https://open-ai-ping-eight.vercel.app/'
117
+ # url1 = 'https://open-ai-ping-eight.vercel.app/1'
118
+ # url2 = 'https://open-ai-ping-eight.vercel.app/2'
119
+ urls= ['https://ping_deta-1-a5162851.deta.app/',
120
+ 'https://ping_deta-1-a5162851.deta.app/1',
121
+ 'https://ping_deta-1-a5162851.deta.app/11',
122
+ 'https://ping_deta-1-a5162851.deta.app/2',
123
+ 'https://ping_deta-1-a5162851.deta.app/3',
124
+ 'https://ping_deta-1-a5162851.deta.app/4']
125
 
126
  while True:
127
  try:
128
 
129
  print("inside vercel ping ")
130
+ for url in urls:
131
+ requests.get(url)
 
132
 
133
  time.sleep(60)
134
  print("ping done")