Commit
•
524ba70
1
Parent(s):
b71f9a0
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,21 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
""
|
5 |
-
|
6 |
-
|
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()
|