Update app.py
Browse files
app.py
CHANGED
|
@@ -556,11 +556,13 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
| 556 |
## Image to 3D Asset with [TRELLIS.2](https://microsoft.github.io/TRELLIS.2)
|
| 557 |
* Upload an image (preferably with an alpha-masked foreground object) and click Generate to create a 3D asset.
|
| 558 |
* Click Extract GLB to export and download the generated GLB file if you're satisfied with the result. Otherwise, try another time.
|
|
|
|
|
|
|
| 559 |
""")
|
| 560 |
|
| 561 |
with gr.Row():
|
| 562 |
with gr.Column(scale=1, min_width=360):
|
| 563 |
-
image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", height=400)
|
| 564 |
|
| 565 |
resolution = gr.Radio(["512", "1024", "1536"], label="Resolution", value="1024")
|
| 566 |
seed = gr.Slider(0, MAX_SEED, label="Seed", value=0, step=1)
|
|
|
|
| 556 |
## Image to 3D Asset with [TRELLIS.2](https://microsoft.github.io/TRELLIS.2)
|
| 557 |
* Upload an image (preferably with an alpha-masked foreground object) and click Generate to create a 3D asset.
|
| 558 |
* Click Extract GLB to export and download the generated GLB file if you're satisfied with the result. Otherwise, try another time.
|
| 559 |
+
* *Note: Uploaded images are temporarily cached on Hugging Face server and permanently deleted after session ends.
|
| 560 |
+
Microsoft does not access or retain any user data. Users are advised against uploading data containing sensitive or private information.*
|
| 561 |
""")
|
| 562 |
|
| 563 |
with gr.Row():
|
| 564 |
with gr.Column(scale=1, min_width=360):
|
| 565 |
+
image_prompt = gr.Image(label="Image Prompt", format="png", image_mode="RGBA", type="pil", sources=["upload", "clipboard"], height=400)
|
| 566 |
|
| 567 |
resolution = gr.Radio(["512", "1024", "1536"], label="Resolution", value="1024")
|
| 568 |
seed = gr.Slider(0, MAX_SEED, label="Seed", value=0, step=1)
|