VethaNarayananG commited on
Commit
3ac53ae
·
verified ·
1 Parent(s): 837d89f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -12
app.py CHANGED
@@ -1,14 +1,7 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return f"Hello {name}"
5
-
6
- demo = gr.Interface(
7
- fn=greet,
8
- inputs=gr.Textbox(label="Enter your name"),
9
- outputs=gr.Textbox(label="Output"),
10
- title="AI Chatbot"
11
- )
12
-
13
- if __name__ == "__main__":
14
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
1
  import gradio as gr
2
 
3
+ gr.Interface(
4
+ lambda x: f"Hello {x}",
5
+ "text",
6
+ "text"
7
+ ).launch()