Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -293,9 +293,9 @@ def update_pricing(steps, oauth_token: Union[gr.OAuthToken, None]):
|
|
| 293 |
return gr.update(visible=True), cost_preview, gr.update(visible=False), gr.update(visible=True)
|
| 294 |
else:
|
| 295 |
pay_disclaimer = f'''## ⚠️ {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><br>'''
|
| 296 |
-
return gr.update(visible=True),
|
| 297 |
-
|
| 298 |
-
|
| 299 |
|
| 300 |
return gr.update(visible=True), pay_disclaimer+cost_preview, gr.update(visible=True), gr.update(visible=False)
|
| 301 |
else:
|
|
|
|
| 293 |
return gr.update(visible=True), cost_preview, gr.update(visible=False), gr.update(visible=True)
|
| 294 |
else:
|
| 295 |
pay_disclaimer = f'''## ⚠️ {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><br>'''
|
| 296 |
+
return gr.update(visible=True), pay_disclaimer+cost_preview, gr.update(visible=True), gr.update(visible=False)
|
| 297 |
+
else:
|
| 298 |
+
return gr.update(visible=False), "", gr.update(visible=False), gr.update(visible=True)
|
| 299 |
|
| 300 |
return gr.update(visible=True), pay_disclaimer+cost_preview, gr.update(visible=True), gr.update(visible=False)
|
| 301 |
else:
|