gabrielyang commited on
Commit
524ba70
1 Parent(s): b71f9a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -5
app.py CHANGED
@@ -1,8 +1,21 @@
1
  import gradio as gr
2
 
3
- gr.Markdown(
4
- """
5
- # Hello World!
6
- Start typing below to see the output.
7
- """)
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  # gr.Interface.load("models/gabrielyang/finance_news_classifier-KR_v7").launch()
 
1
  import gradio as gr
2
 
3
+ def welcome(name):
4
+ return f"Welcome to Gradio, {name}!"
5
+
6
+ with gr.Blocks() as demo:
7
+ gr.Markdown(
8
+ """
9
+ # Hello World!
10
+ Start typing below to see the output.
11
+ """)
12
+ inp = gr.Textbox(placeholder="What is your name?")
13
+ out = gr.Textbox()
14
+ inp.change(welcome, inp, out)
15
+
16
+ if __name__ == "__main__":
17
+ demo.launch()
18
+
19
+
20
+
21
  # gr.Interface.load("models/gabrielyang/finance_news_classifier-KR_v7").launch()