tongxiaojun commited on
Commit
43d295d
·
1 Parent(s): fa35b2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -3,6 +3,12 @@ import gradio as gr
3
  def greet(name):
4
  return "Hello " + name + "!"
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
7
 
8
- demo.launch()
 
 
 
 
 
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()