ThomasSimonini HF staff commited on
Commit
b602935
·
verified ·
1 Parent(s): f45a2d5

Put back obj

Browse files
Files changed (1) hide show
  1. app.py +14 -5
app.py CHANGED
@@ -235,7 +235,9 @@ _HEADER_ = """
235
 
236
  3. Click on generate
237
 
238
- 4. The 3D mesh is generated, and you can download the file (it's GLB format) using the ⬇️
 
 
239
 
240
  5. Open Roblox Studio
241
 
@@ -299,11 +301,18 @@ with gr.Blocks() as demo:
299
  )
300
 
301
  with gr.Row():
302
- output_model_glb = gr.Model3D(
 
 
 
 
 
 
 
303
  label="Output Model (GLB Format)",
304
  interactive=False,
305
- )
306
- gr.Markdown("Note: The model shown here has a darker appearance. Download to get correct results.")
307
 
308
  with gr.Row():
309
  gr.Markdown('''Try a different <b>seed value</b> if the result is unsatisfying (Default: 42).''')
@@ -322,7 +331,7 @@ with gr.Blocks() as demo:
322
  ).success(
323
  fn=make3d,
324
  inputs=[mv_images],
325
- outputs=[output_model_glb]
326
  )
327
 
328
  demo.launch()
 
235
 
236
  3. Click on generate
237
 
238
+ 4. The 3D mesh is generated, and you can download the file.
239
+ - If you want to **import it now to Roblow download the GLB file** using the arrow ⬇️
240
+ - If you want to **transform it to low poly mesh, download the OBJ** file using the arrow ⬇️
241
 
242
  5. Open Roblox Studio
243
 
 
301
  )
302
 
303
  with gr.Row():
304
+ with gr.Tab("OBJ"):
305
+ output_model_obj = gr.Model3D(
306
+ label="Output Model (OBJ Format)",
307
+ interactive=False,
308
+ )
309
+ gr.Markdown("Note: Downloaded .obj model will be flipped. Export .glb instead or manually flip it before usage.")
310
+ with gr.Tab("GLB"):
311
+ output_model_glb = gr.Model3D(
312
  label="Output Model (GLB Format)",
313
  interactive=False,
314
+ )
315
+ gr.Markdown("Note: The model shown here has a darker appearance. Download to get correct results.")
316
 
317
  with gr.Row():
318
  gr.Markdown('''Try a different <b>seed value</b> if the result is unsatisfying (Default: 42).''')
 
331
  ).success(
332
  fn=make3d,
333
  inputs=[mv_images],
334
+ outputs=[output_model_obj, output_model_glb]
335
  )
336
 
337
  demo.launch()