Spaces:
Sleeping
Sleeping
Commit
·
43d295d
1
Parent(s):
fa35b2a
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,12 @@ import gradio as gr
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!"
|
5 |
|
6 |
-
|
|
|
|
|
7 |
|
8 |
-
|
|
|
|
|
|
|
|
|
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!"
|
5 |
|
6 |
+
with gr.Blocks(show_footer=False) as blocks:
|
7 |
+
image = gr.Image(show_label=False)
|
8 |
+
blocks.load(fn=greet, inputs="text", outputs="text")
|
9 |
|
10 |
+
blocks.queue(api_open=False)
|
11 |
+
blocks.launch()
|
12 |
+
|
13 |
+
#demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
14 |
+
#demo.launch()
|