File size: 316 Bytes
9877cf2
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr

# Define the new Gradio app function
def greet(name):
    return f"Hello, {name}! You are now in the new Gradio app."

# Create a new Gradio interface
iface = gr.Interface(fn=greet, inputs="text", outputs="text")

# Launch the new Gradio app
iface.launch(server_name="0.0.0.0", server_port=7860)