jer233 commited on
Commit
12c1be9
·
verified ·
1 Parent(s): c507c2e

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
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()