Spaces:
Sleeping
Sleeping
Commit
·
9a3aec4
1
Parent(s):
82db26d
Update app.py
Browse files
app.py
CHANGED
@@ -98,15 +98,13 @@ async def get_answer( ):
|
|
98 |
|
99 |
|
100 |
def do_ping():
|
101 |
-
|
102 |
-
print("inside vercel ping ")
|
103 |
-
|
104 |
url = 'https://open-ai-ping-eight.vercel.app/'
|
105 |
-
|
106 |
-
x = requests.get(url)
|
107 |
-
|
108 |
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
|
100 |
def do_ping():
|
|
|
|
|
|
|
101 |
url = 'https://open-ai-ping-eight.vercel.app/'
|
|
|
|
|
|
|
102 |
|
103 |
+
while True:
|
104 |
+
try:
|
105 |
+
|
106 |
+
print("inside vercel ping ")
|
107 |
+
x = requests.get(url)
|
108 |
+
time.sleep(60)
|
109 |
+
except:
|
110 |
+
continue
|