Jose Benitez commited on
Commit
7a6ca6b
1 Parent(s): e99d2e7

fix lora name

Browse files
Files changed (1) hide show
  1. gradio_app.py +9 -5
gradio_app.py CHANGED
@@ -202,8 +202,7 @@ with gr.Blocks(theme=gr.themes.Soft(), head=header, css=main_css) as main_demo:
202
 
203
 
204
  greetings = gr.Markdown("Loading user information...")
205
- gr.Button("Comprar Creditos", link="/buy_credits", elem_id="buy_credits_btn")
206
-
207
  selected_index = gr.State(None)
208
 
209
  with gr.Row():
@@ -211,13 +210,18 @@ with gr.Blocks(theme=gr.themes.Soft(), head=header, css=main_css) as main_demo:
211
  generation_credits_display = gr.Number(label="Generation Credits", precision=0, interactive=False)
212
  with gr.Column():
213
  train_credits_display = gr.Number(label="Training Credits", precision=0, interactive=False)
 
 
214
 
215
 
216
  with gr.Tabs():
217
  with gr.TabItem('Generacion'):
218
  with gr.Row():
219
  with gr.Column(scale=3):
220
- prompt = gr.Textbox(label="Prompt", lines=1, placeholder="Ingresa un prompt para empezar a crear")
 
 
 
221
  with gr.Column(scale=1, elem_id="gen_column"):
222
  generate_button = gr.Button("Generate", variant="primary", elem_id="gen_btn")
223
 
@@ -234,10 +238,10 @@ with gr.Blocks(theme=gr.themes.Soft(), head=header, css=main_css) as main_demo:
234
  elem_id="galley"
235
  )
236
 
237
- with gr.Accordion("Modelos Publicos", open=False):
238
  selected_info = gr.Markdown("")
239
  gallery = gr.Gallery(
240
- [(item["image_url"], item["lora_name"]) for item in lora_models],
241
  label="Galeria de Modelos Publicos",
242
  allow_preview=False,
243
  columns=3,
 
202
 
203
 
204
  greetings = gr.Markdown("Loading user information...")
205
+
 
206
  selected_index = gr.State(None)
207
 
208
  with gr.Row():
 
210
  generation_credits_display = gr.Number(label="Generation Credits", precision=0, interactive=False)
211
  with gr.Column():
212
  train_credits_display = gr.Number(label="Training Credits", precision=0, interactive=False)
213
+ with gr.Column():
214
+ gr.Button("Comprar Creditos 💳", link="/buy_credits")
215
 
216
 
217
  with gr.Tabs():
218
  with gr.TabItem('Generacion'):
219
  with gr.Row():
220
  with gr.Column(scale=3):
221
+ prompt = gr.Textbox(label="Prompt",
222
+ lines=1,
223
+ placeholder="Ingresa un prompt para empezar a crear",
224
+ info='Algunos modelos publicos pueden demorar un poco más dependiendo de la disponibilidad que tengan en los servidores.')
225
  with gr.Column(scale=1, elem_id="gen_column"):
226
  generate_button = gr.Button("Generate", variant="primary", elem_id="gen_btn")
227
 
 
238
  elem_id="galley"
239
  )
240
 
241
+ with gr.Accordion("Modelos Publicos"):
242
  selected_info = gr.Markdown("")
243
  gallery = gr.Gallery(
244
+ [(item["image_url"], item["model_name"]) for item in lora_models],
245
  label="Galeria de Modelos Publicos",
246
  allow_preview=False,
247
  columns=3,