Spaces:
Running
Running
add title and description
Browse files
app.py
CHANGED
@@ -44,5 +44,14 @@ examples = [
|
|
44 |
for filename in ("mona_lisa.jpg", "starry_night.jpg", "persistence_memory.jpg")
|
45 |
]
|
46 |
|
47 |
-
gui = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
gui.launch(inline=False)
|
|
|
44 |
for filename in ("mona_lisa.jpg", "starry_night.jpg", "persistence_memory.jpg")
|
45 |
]
|
46 |
|
47 |
+
gui = gr.Interface(
|
48 |
+
fn=classify_image,
|
49 |
+
inputs=image,
|
50 |
+
outputs=label,
|
51 |
+
examples=examples,
|
52 |
+
title="Detect the painter",
|
53 |
+
description=(
|
54 |
+
f"Detect if the given painting image is by a famous painter ({full_name_cats})."
|
55 |
+
)
|
56 |
+
)
|
57 |
gui.launch(inline=False)
|