akhaliq HF Staff commited on
Commit
da10426
·
1 Parent(s): 3209086
Files changed (1) hide show
  1. app.py +3 -3
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.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
 
 
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