Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ def predict(text, request: gr.Request):
|
|
| 6 |
local_ip = socket.gethostbyname(socket.gethostname())
|
| 7 |
return text, {"client_ip": client_ip, "local_ip": local_ip}
|
| 8 |
|
| 9 |
-
with gr.Blocks() as
|
| 10 |
gr.Markdown("## Test request")
|
| 11 |
text = gr.Textbox(label="dummy input")
|
| 12 |
output = gr.JSON({})
|
|
|
|
| 6 |
local_ip = socket.gethostbyname(socket.gethostname())
|
| 7 |
return text, {"client_ip": client_ip, "local_ip": local_ip}
|
| 8 |
|
| 9 |
+
with gr.Blocks() as block:
|
| 10 |
gr.Markdown("## Test request")
|
| 11 |
text = gr.Textbox(label="dummy input")
|
| 12 |
output = gr.JSON({})
|