D0k-tor commited on
Commit
e59dcf6
·
1 Parent(s): e9f3819

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -1,7 +1,20 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ # def greet(name):
4
+ # return "Hello " + name + "!!"
5
 
6
+ # iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
+ # iface.launch()
8
+
9
+ inputs = gr.inputs.Image(label="Upload any Image", type = 'pil', optional=True)
10
+ output = gr.outputs.Textbox(type="auto",label="Captions")
11
+
12
+ interface = gr.Interface(
13
+ fn=predict,
14
+ description=description,
15
+ inputs = input,
16
+ theme="grass",
17
+ outputs=output,
18
+ title=title,
19
+ )
20
+ interface.launch(debug=True)