sariyam commited on
Commit
16427af
·
verified ·
1 Parent(s): 14761e7

Update hg_app.py

Browse files
Files changed (1) hide show
  1. hg_app.py +4 -4
hg_app.py CHANGED
@@ -265,12 +265,12 @@ def build_app():
265
  image = gr.Image(label='Image', type='pil', image_mode='RGBA', height=290)
266
  with gr.Row():
267
  check_box_rembg = gr.Checkbox(value=True, label='Remove Background')
268
- '''
269
  with gr.Tab('Text Prompt', id='tab_txt_prompt', visible=HAS_T2I) as tab_tp:
270
  caption = gr.Textbox(label='Text Prompt',
271
  placeholder='HunyuanDiT will be used to generate image.',
272
  info='Example: A 3D model of a cute cat, white background')
273
- '''
274
 
275
  with gr.Accordion('Advanced Options', open=False):
276
  num_steps = gr.Slider(maximum=50, minimum=20, value=50, step=1, label='Inference Steps')
@@ -303,12 +303,12 @@ def build_app():
303
  with gr.Row():
304
  gr.Examples(examples=example_is, inputs=[image],
305
  label="Image Prompts", examples_per_page=18)
306
- '''
307
  with gr.Tab('Text to 3D Gallery', id='tab_txt_gallery', visible=HAS_T2I) as tab_gt:
308
  with gr.Row():
309
  gr.Examples(examples=example_ts, inputs=[caption],
310
  label="Text Prompts", examples_per_page=18)
311
- '''
312
 
313
  if not HAS_TEXTUREGEN:
314
  gr.HTML("""
 
265
  image = gr.Image(label='Image', type='pil', image_mode='RGBA', height=290)
266
  with gr.Row():
267
  check_box_rembg = gr.Checkbox(value=True, label='Remove Background')
268
+
269
  with gr.Tab('Text Prompt', id='tab_txt_prompt', visible=HAS_T2I) as tab_tp:
270
  caption = gr.Textbox(label='Text Prompt',
271
  placeholder='HunyuanDiT will be used to generate image.',
272
  info='Example: A 3D model of a cute cat, white background')
273
+
274
 
275
  with gr.Accordion('Advanced Options', open=False):
276
  num_steps = gr.Slider(maximum=50, minimum=20, value=50, step=1, label='Inference Steps')
 
303
  with gr.Row():
304
  gr.Examples(examples=example_is, inputs=[image],
305
  label="Image Prompts", examples_per_page=18)
306
+
307
  with gr.Tab('Text to 3D Gallery', id='tab_txt_gallery', visible=HAS_T2I) as tab_gt:
308
  with gr.Row():
309
  gr.Examples(examples=example_ts, inputs=[caption],
310
  label="Text Prompts", examples_per_page=18)
311
+
312
 
313
  if not HAS_TEXTUREGEN:
314
  gr.HTML("""