Spaces:
Sleeping
Sleeping
Commit
·
bedb9ce
1
Parent(s):
963ad3e
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,11 +12,11 @@ import subprocess
|
|
| 12 |
import os
|
| 13 |
import requests
|
| 14 |
import random
|
| 15 |
-
import pandas as pd
|
| 16 |
from pydub import AudioSegment
|
| 17 |
from datetime import datetime
|
| 18 |
from datetime import date
|
| 19 |
-
import numpy as np
|
| 20 |
# from sklearn.ensemble import RandomForestRegressor
|
| 21 |
import shutil
|
| 22 |
import json
|
|
@@ -105,7 +105,7 @@ def do_delete():
|
|
| 105 |
while True:
|
| 106 |
try:
|
| 107 |
|
| 108 |
-
print("inside
|
| 109 |
x = requests.get(url,timeout=19)
|
| 110 |
print(x.text)
|
| 111 |
time.sleep(1800)
|
|
@@ -126,11 +126,13 @@ def do_ping():
|
|
| 126 |
while True:
|
| 127 |
try:
|
| 128 |
|
| 129 |
-
print("inside
|
| 130 |
for url in urls:
|
| 131 |
try:
|
| 132 |
-
requests.get(url, timeout=20)
|
| 133 |
-
|
|
|
|
|
|
|
| 134 |
pass
|
| 135 |
|
| 136 |
time.sleep(60)
|
|
|
|
| 12 |
import os
|
| 13 |
import requests
|
| 14 |
import random
|
| 15 |
+
# import pandas as pd
|
| 16 |
from pydub import AudioSegment
|
| 17 |
from datetime import datetime
|
| 18 |
from datetime import date
|
| 19 |
+
# import numpy as np
|
| 20 |
# from sklearn.ensemble import RandomForestRegressor
|
| 21 |
import shutil
|
| 22 |
import json
|
|
|
|
| 105 |
while True:
|
| 106 |
try:
|
| 107 |
|
| 108 |
+
print("inside delete ping ")
|
| 109 |
x = requests.get(url,timeout=19)
|
| 110 |
print(x.text)
|
| 111 |
time.sleep(1800)
|
|
|
|
| 126 |
while True:
|
| 127 |
try:
|
| 128 |
|
| 129 |
+
print("inside ping ")
|
| 130 |
for url in urls:
|
| 131 |
try:
|
| 132 |
+
x=requests.get(url, timeout=20)
|
| 133 |
+
print(x.text)
|
| 134 |
+
except Exception as e:
|
| 135 |
+
print(e)
|
| 136 |
pass
|
| 137 |
|
| 138 |
time.sleep(60)
|