Mohsen-drnext's picture
Upload 12 files
3bb9a91 verified
raw
history blame contribute delete
No virus
426 Bytes
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)