jer233's picture
Create app.py
12c1be9 verified
raw
history blame
250 Bytes
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()