Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
# Function to handle user input
|
4 |
+
def greet(name):
|
5 |
+
return f"Hello, {name}!"
|
6 |
+
|
7 |
+
# Create a Gradio interface
|
8 |
+
app = gr.Interface(fn=greet, inputs="text", outputs="text")
|
9 |
+
|
10 |
+
# Launch the app
|
11 |
+
if __name__ == "__main__":
|
12 |
+
app.launch()
|