Spaces:
Build error
Build error
yangwu
commited on
Commit
•
13182b9
1
Parent(s):
8d25695
update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
import json
|
3 |
import requests
|
|
|
4 |
|
5 |
|
6 |
def test():
|
|
|
|
|
|
|
|
|
7 |
print('testing backend interface...')
|
8 |
url = 'http://81.70.158.155:5005/predict'
|
9 |
with open('./2680.jpg', 'rb') as f:
|
|
|
1 |
import gradio as gr
|
2 |
import json
|
3 |
import requests
|
4 |
+
import os
|
5 |
|
6 |
|
7 |
def test():
|
8 |
+
os.system('ping -c 5 www.baidu.com ')
|
9 |
+
os.system('ping -c 5 www.google.com ')
|
10 |
+
os.system('ping -c 5 81.70.158.155 ')
|
11 |
+
|
12 |
print('testing backend interface...')
|
13 |
url = 'http://81.70.158.155:5005/predict'
|
14 |
with open('./2680.jpg', 'rb') as f:
|