multimodalart HF staff commited on
Commit
540aa2c
1 Parent(s): 4a90492

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -254,8 +254,7 @@ def update_pricing(steps, oauth_token: Union[gr.OAuthToken, None]):
254
  return gr.update(visible=True), cost_preview, gr.update(visible=False), gr.update(visible=True)
255
  else:
256
  pay_disclaimer = f'''<b>## ⚠️ {user["name"]}, your account doesn't have a payment method. Set one up <a href='https://huggingface.co/settings/billing/payment' target='_blank'>here</a> and come back here to train your LoRA<br>'''
257
- return gr.update(visible=True),
258
- return gr.update(visible=True), pay_disclaimer+cost_preview, gr.update(visible=True), gr.update(visible=False)
259
  else:
260
  return gr.update(visible=False), "", gr.update(visible=False), gr.update(visible=True)
261
 
 
254
  return gr.update(visible=True), cost_preview, gr.update(visible=False), gr.update(visible=True)
255
  else:
256
  pay_disclaimer = f'''<b>## ⚠️ {user["name"]}, your account doesn't have a payment method. Set one up <a href='https://huggingface.co/settings/billing/payment' target='_blank'>here</a> and come back here to train your LoRA<br>'''
257
+ return gr.update(visible=True), pay_disclaimer+cost_preview, gr.update(visible=True), gr.update(visible=False)
 
258
  else:
259
  return gr.update(visible=False), "", gr.update(visible=False), gr.update(visible=True)
260