Spaces:
Running on CPU Upgrade

lunarflu HF Staff commited on
Commit
f3bd195
·
verified ·
1 Parent(s): 421347b
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -206,7 +206,7 @@ def verify_button(profile: gr.OAuthProfile | None, request: gr.Request) -> str:
206
  else:
207
  print(f"⚠️ {member.name} did not have the pending role. Ignoring.")
208
 
209
- asyncio.create_task(upgrade_role())
210
  return f"# ✅ Verification successful! Welcome, {profile.username} 🎉"
211
 
212
 
 
206
  else:
207
  print(f"⚠️ {member.name} did not have the pending role. Ignoring.")
208
 
209
+ await upgrade_role()
210
  return f"# ✅ Verification successful! Welcome, {profile.username} 🎉"
211
 
212