mohitk1234 commited on
Commit
3064266
·
verified ·
1 Parent(s): d83a16b

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is a simple Gradio app that greets the user.
2
+ import gradio as gr
3
+
4
+ # Define a function that takes a name and returns a greeting.
5
+ def greet(name):
6
+ return "Hello " + name + "!"
7
+
8
+ # Create a Gradio interface that takes a textbox input, runs it through the greet function, and returns output to a textbox.
9
+ demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
10
+
11
+ # Launch the interface.
12
+ if __name__ == "__main__":
13
+ demo.launch(show_error=True)