Spaces:
Running
on
L40S
Running
on
L40S
Upload ./app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -26,6 +26,7 @@ import os
|
|
| 26 |
import warnings
|
| 27 |
import argparse
|
| 28 |
import gradio as gr
|
|
|
|
| 29 |
from glob import glob
|
| 30 |
import shutil
|
| 31 |
import torch
|
|
@@ -378,7 +379,7 @@ with gr.Blocks() as demo:
|
|
| 378 |
interactive=False
|
| 379 |
)
|
| 380 |
|
| 381 |
-
result_3dobj =
|
| 382 |
clear_color=[0.0, 0.0, 0.0, 0.0],
|
| 383 |
label="OBJ vertex color",
|
| 384 |
show_label=True,
|
|
@@ -387,7 +388,8 @@ with gr.Blocks() as demo:
|
|
| 387 |
interactive=False
|
| 388 |
)
|
| 389 |
|
| 390 |
-
result_3dglb_texture =
|
|
|
|
| 391 |
clear_color=[0.0, 0.0, 0.0, 0.0],
|
| 392 |
label="GLB face color",
|
| 393 |
show_label=True,
|
|
@@ -395,7 +397,8 @@ with gr.Blocks() as demo:
|
|
| 395 |
camera_position=[90, 90, None],
|
| 396 |
interactive=False)
|
| 397 |
|
| 398 |
-
result_3dglb_baked =
|
|
|
|
| 399 |
clear_color=[0.0, 0.0, 0.0, 0.0],
|
| 400 |
label="GLB baking",
|
| 401 |
show_label=True,
|
|
@@ -436,4 +439,4 @@ with gr.Blocks() as demo:
|
|
| 436 |
demo.queue(max_size=1)
|
| 437 |
demo.launch(server_name='0.0.0.0', server_port=8080)
|
| 438 |
# demo.launch()
|
| 439 |
-
|
|
|
|
| 26 |
import warnings
|
| 27 |
import argparse
|
| 28 |
import gradio as gr
|
| 29 |
+
import gradio_litmodel3d as gr_l3d
|
| 30 |
from glob import glob
|
| 31 |
import shutil
|
| 32 |
import torch
|
|
|
|
| 379 |
interactive=False
|
| 380 |
)
|
| 381 |
|
| 382 |
+
result_3dobj = gr_l3d.LitModel3D(
|
| 383 |
clear_color=[0.0, 0.0, 0.0, 0.0],
|
| 384 |
label="OBJ vertex color",
|
| 385 |
show_label=True,
|
|
|
|
| 388 |
interactive=False
|
| 389 |
)
|
| 390 |
|
| 391 |
+
result_3dglb_texture = gr_l3d.LitModel3D(
|
| 392 |
+
exposure=16.0,
|
| 393 |
clear_color=[0.0, 0.0, 0.0, 0.0],
|
| 394 |
label="GLB face color",
|
| 395 |
show_label=True,
|
|
|
|
| 397 |
camera_position=[90, 90, None],
|
| 398 |
interactive=False)
|
| 399 |
|
| 400 |
+
result_3dglb_baked = gr_l3d.LitModel3D(
|
| 401 |
+
exposure=16.0,
|
| 402 |
clear_color=[0.0, 0.0, 0.0, 0.0],
|
| 403 |
label="GLB baking",
|
| 404 |
show_label=True,
|
|
|
|
| 439 |
demo.queue(max_size=1)
|
| 440 |
demo.launch(server_name='0.0.0.0', server_port=8080)
|
| 441 |
# demo.launch()
|
| 442 |
+
|