Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|