Spaces:
sariyam
/
Runtime error

sariyam commited on
Commit
30cbd44
·
verified ·
1 Parent(s): a0320b9

Update hg_app.py

Browse files
Files changed (1) hide show
  1. hg_app.py +6 -6
hg_app.py CHANGED
@@ -251,7 +251,7 @@ def shape_generation(
251
  def build_app():
252
  title_html = """
253
  <div style="font-size: 2em; font-weight: bold; text-align: center; margin-bottom: 5px">
254
- Free Image to 3d Model Generator Online
255
  </div>
256
  """
257
 
@@ -261,13 +261,13 @@ def build_app():
261
  with gr.Row():
262
  with gr.Column(scale=2):
263
  with gr.Tabs() as tabs_prompt:
264
- with gr.Tab('Image Prompt', id='tab_img_prompt') as tab_ip:
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
- with gr.Tab('Text Prompt', id='tab_txt_prompt', visible = False) as tab_tp:
271
  caption = gr.Textbox(label='Text Prompt',
272
  placeholder='HunyuanDiT will be used to generate image.',
273
  info='Example: A 3D model of a cute cat, white background')
@@ -302,16 +302,16 @@ def build_app():
302
 
303
  with gr.Column(scale=2):
304
  with gr.Tabs() as gallery:
305
- with gr.Tab('Examples', id='tab_img_gallery') as tab_gi:
306
  with gr.Row():
307
  gr.Examples(examples=example_is, inputs=[image],
308
  label="Example Images", examples_per_page=18)
309
 
310
  #with gr.Tab('Text to 3D Gallery', id='tab_txt_gallery', visible=HAS_T2I) as tab_gt:
311
- with gr.Tab('Text to 3D Gallery', id='tab_txt_gallery', visible=False) as tab_gt:
312
  with gr.Row():
313
  gr.Examples(examples=example_ts, inputs=[caption],
314
- label="Text Prompts", examples_per_page=18)
315
 
316
 
317
  if not HAS_TEXTUREGEN:
 
251
  def build_app():
252
  title_html = """
253
  <div style="font-size: 2em; font-weight: bold; text-align: center; margin-bottom: 5px">
254
+ Free Text to 3d Model Generator Online
255
  </div>
256
  """
257
 
 
261
  with gr.Row():
262
  with gr.Column(scale=2):
263
  with gr.Tabs() as tabs_prompt:
264
+ with gr.Tab('Image Prompt', id='tab_img_prompt' , visible = False) as tab_ip:
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
+ with gr.Tab('Text Prompt', id='tab_txt_prompt') as tab_tp:
271
  caption = gr.Textbox(label='Text Prompt',
272
  placeholder='HunyuanDiT will be used to generate image.',
273
  info='Example: A 3D model of a cute cat, white background')
 
302
 
303
  with gr.Column(scale=2):
304
  with gr.Tabs() as gallery:
305
+ with gr.Tab('Examples', id='tab_img_gallery' , visible=False) as tab_gi:
306
  with gr.Row():
307
  gr.Examples(examples=example_is, inputs=[image],
308
  label="Example Images", examples_per_page=18)
309
 
310
  #with gr.Tab('Text to 3D Gallery', id='tab_txt_gallery', visible=HAS_T2I) as tab_gt:
311
+ with gr.Tab('Examples', id='tab_txt_gallery') as tab_gt:
312
  with gr.Row():
313
  gr.Examples(examples=example_ts, inputs=[caption],
314
+ label="Examples Prompts", examples_per_page=18)
315
 
316
 
317
  if not HAS_TEXTUREGEN: