Spaces:
Sleeping
Sleeping
yulin
commited on
Commit
•
43736a5
1
Parent(s):
96c7091
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import socket
|
3 |
+
def do(url):
|
4 |
+
outp=socket.gethostbyname(url)
|
5 |
+
return outp
|
6 |
+
iface=gr.Interface(fn=do,title='網站ip找尋工具',description='輸入一個網址,我們可以幫您找到他的ip.',inputs='text',outputs='text')
|
7 |
+
iface.launch(share=True)
|