Spaces:
Sleeping
Sleeping
Update MinimalScanner.py
Browse files- MinimalScanner.py +5 -7
MinimalScanner.py
CHANGED
@@ -1,10 +1,8 @@
|
|
1 |
import requests
|
2 |
import gradio as gr
|
3 |
|
4 |
-
def instant_predict():
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
print('IP CLIENT HOST: ', request.client.host)
|
10 |
-
return 0
|
|
|
1 |
import requests
|
2 |
import gradio as gr
|
3 |
|
4 |
+
def instant_predict(image):
|
5 |
+
endpoint = 'http://192.168.1.204:5000/models/predict/instant'
|
6 |
+
response = requests.get(endpoint)
|
7 |
+
print(response.content)
|
8 |
+
return response.content
|
|
|
|