devudilip commited on
Commit
8e86340
·
verified ·
1 Parent(s): 5b5dc4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -18,5 +18,16 @@ label = gr.Label()
18
 
19
  examples = ['siamese.png']
20
 
21
- intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
22
- intf.launch()
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  examples = ['siamese.png']
20
 
21
+ # intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
22
+ # intf.launch()
23
+
24
+ def greet(name, intensity):
25
+ return "Hello, " + name + "!" * int(intensity)
26
+
27
+ demo = gr.Interface(
28
+ fn=greet,
29
+ inputs=["text", "slider"],
30
+ outputs=["text"],
31
+ )
32
+
33
+ demo.launch()