Spaces:
Sleeping
Sleeping
wangli
commited on
Commit
•
d18d42a
1
Parent(s):
712b87e
feat: fix
Browse files- .gitignore +3 -1
- app.py +7 -3
.gitignore
CHANGED
@@ -1 +1,3 @@
|
|
1 |
-
.idea/
|
|
|
|
|
|
1 |
+
.idea/
|
2 |
+
__pycache__/
|
3 |
+
flagged/
|
app.py
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def greet(input):
|
4 |
-
return "Hello " + input + "
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def greet(input):
|
4 |
+
return "Hello, " + input + "!"
|
5 |
|
6 |
+
gr.Interface(
|
7 |
+
fn=greet,
|
8 |
+
inputs=gr.Textbox(lines=1, placeholder="Name Here..."),
|
9 |
+
outputs="text",
|
10 |
+
title="Hello, World!",
|
11 |
+
).launch()
|