multimodalart HF staff commited on
Commit
313a208
1 Parent(s): c6084c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -246,7 +246,7 @@ def update_pricing(steps):
246
  cost_per_second = 0.80/60/60
247
  cost = round(cost_per_second * total_seconds, 2)
248
  cost_preview = f'''To train this LoRA, a paid L4 GPU will be hooked under the hood during training and then removed once finished.
249
- ## Estimated to cost <b>< US$ {str(cost)}</b> for {round(int(total_seconds)/60, 2)} minutes with your current train settings <small>({int(iterations)} iterations at {seconds_per_iteration}s/it)</small>'''
250
  return gr.update(visible=True), gr.update(cost_preview)
251
 
252
  with gr.Blocks(theme=theme, css=css) as demo:
 
246
  cost_per_second = 0.80/60/60
247
  cost = round(cost_per_second * total_seconds, 2)
248
  cost_preview = f'''To train this LoRA, a paid L4 GPU will be hooked under the hood during training and then removed once finished.
249
+ ## Estimated to cost <b>< US$ {str(cost)}</b> for {round(int(total_seconds)/60, 2)} minutes with your current train settings <small>({int(steps)} iterations at {seconds_per_iteration}s/it)</small>'''
250
  return gr.update(visible=True), gr.update(cost_preview)
251
 
252
  with gr.Blocks(theme=theme, css=css) as demo: