File size: 250 Bytes
12c1be9
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr

# Function to handle user input
def greet(name):
    return f"Hello, {name}!"

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

# Launch the app
if __name__ == "__main__":
    app.launch()