Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
4a90492
1
Parent(s):
3cfa62d
Update app.py
Browse files
app.py
CHANGED
@@ -253,7 +253,7 @@ def update_pricing(steps, oauth_token: Union[gr.OAuthToken, None]):
|
|
253 |
if(user["canPay"]):
|
254 |
return gr.update(visible=True), cost_preview, gr.update(visible=False), gr.update(visible=True)
|
255 |
else:
|
256 |
-
pay_disclaimer = f'''<b>## ⚠️ {user
|
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:
|
|
|
253 |
if(user["canPay"]):
|
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:
|