Update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,8 @@ examples = ['lionmale.jpg', 'lionfemale.jpg']
|
|
| 16 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 17 |
intf.launch(inline=False)
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
|
|
|
| 16 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
| 17 |
intf.launch(inline=False)
|
| 18 |
|
| 19 |
+
def greet(name):
|
| 20 |
+
return "Hello " + name + "!!"
|
| 21 |
|
| 22 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 23 |
+
iface.launch()
|