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)