Glainez commited on
Commit
be3c7cd
·
verified ·
1 Parent(s): f42cf88

Create MinimalScanner.py

Browse files
Files changed (1) hide show
  1. MinimalScanner.py +10 -0
MinimalScanner.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import gradio as gr
3
+
4
+ def instant_predict():
5
+ instant_predict_request('trial')
6
+ return 0
7
+
8
+ def instant_predict_request(request: gr.Request()):
9
+ print('IP CLIENT HOST: ', request.client.host)
10
+ return 0