File size: 426 Bytes
3bb9a91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os
import gradio as gr

# Define your proxy server address and port
proxy_url = "http://22.110.0.225:10809"

# Set the proxy environment variables
os.environ['HTTP_PROXY'] = proxy_url
os.environ['HTTPS_PROXY'] = proxy_url

def greet(name):
    return "Hello " + name + "!"

# Create the Gradio interface
demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")

# Launch the interface
demo.launch(share=True)