Spaces:
Runtime error
Runtime error
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() | |