Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,9 +126,13 @@ def generate_object_history(object_name):
|
|
| 126 |
|
| 127 |
gif_path = f"{object_name}_evolution.gif"
|
| 128 |
images[0].save(gif_path, save_all=True, append_images=images[1:], duration=1000, loop=0)
|
| 129 |
-
return [
|
| 130 |
-
|
| 131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
#return images, gif_path
|
| 133 |
|
| 134 |
# =========================================================
|
|
@@ -143,11 +147,16 @@ def create_gradio_interface():
|
|
| 143 |
and see its past, present, and future visualized with AI!
|
| 144 |
""")
|
| 145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
default_images = [
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
default_gif_path = "car_evolution.gif"
|
| 152 |
|
| 153 |
with gr.Row():
|
|
|
|
| 126 |
|
| 127 |
gif_path = f"{object_name}_evolution.gif"
|
| 128 |
images[0].save(gif_path, save_all=True, append_images=images[1:], duration=1000, loop=0)
|
| 129 |
+
return [
|
| 130 |
+
f"{object_name}_past.png",
|
| 131 |
+
f"{object_name}_present.png",
|
| 132 |
+
f"{object_name}_future.png"], gif_path
|
| 133 |
+
#return [(f"{object_name}_past.png", labels["past"]),
|
| 134 |
+
# (f"{object_name}_present.png", labels["present"]),
|
| 135 |
+
# (f"{object_name}_future.png", labels["future"])], gif_path
|
| 136 |
#return images, gif_path
|
| 137 |
|
| 138 |
# =========================================================
|
|
|
|
| 147 |
and see its past, present, and future visualized with AI!
|
| 148 |
""")
|
| 149 |
|
| 150 |
+
#default_images = [
|
| 151 |
+
# ("car_past.png", "Car - Past"),
|
| 152 |
+
# ("car_present.png", "Car - Present"),
|
| 153 |
+
# ("car_future.png", "Car - Future")
|
| 154 |
+
#]
|
| 155 |
default_images = [
|
| 156 |
+
"car_past.png",
|
| 157 |
+
"car_present.png",
|
| 158 |
+
"car_future.png"
|
| 159 |
+
]
|
| 160 |
default_gif_path = "car_evolution.gif"
|
| 161 |
|
| 162 |
with gr.Row():
|