fix
Browse files
app.py
CHANGED
|
@@ -8294,9 +8294,9 @@ with gr.Blocks(
|
|
| 8294 |
|
| 8295 |
# Update history if deployment was successful
|
| 8296 |
updated_history = history
|
| 8297 |
-
if "✅" in status
|
| 8298 |
-
action_type = "Deploy" if "Deployed!" in status
|
| 8299 |
-
updated_history = history + [[f"{action_type} {language} app", status
|
| 8300 |
|
| 8301 |
return [status, updated_history]
|
| 8302 |
|
|
|
|
| 8294 |
|
| 8295 |
# Update history if deployment was successful
|
| 8296 |
updated_history = history
|
| 8297 |
+
if isinstance(status, dict) and "value" in status and "✅" in status["value"]:
|
| 8298 |
+
action_type = "Deploy" if "Deployed!" in status["value"] else "Update"
|
| 8299 |
+
updated_history = history + [[f"{action_type} {language} app", status["value"]]]
|
| 8300 |
|
| 8301 |
return [status, updated_history]
|
| 8302 |
|