Spaces:
Runtime error
Runtime error
Upload 3 files
Browse files- BEAR_BLK.OBJ +0 -0
- FinalBaseMesh.obj +0 -0
- app.py +27 -0
BEAR_BLK.OBJ
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
FinalBaseMesh.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
app.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import time
|
| 2 |
+
import gradio as gr
|
| 3 |
+
import os
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
def load_mesh(mesh_file_name):
|
| 7 |
+
time.sleep(2)
|
| 8 |
+
return mesh_file_name
|
| 9 |
+
|
| 10 |
+
description="3D Virtual Food 🥐🥑🥒🥓🥔🥕🥖🥗🥘🥙🥚🥛🥜🥝🥞🥟🥠🥡🥢🥣🥤🥥🥦🥧🥨🥩🥪🥫🥬🥭🥮🥯"
|
| 11 |
+
|
| 12 |
+
inputs = gr.Model3D()
|
| 13 |
+
outputs = gr.Model3D(clear_color=[0.8, 0.2, 0.2, 1.0])
|
| 14 |
+
|
| 15 |
+
demo = gr.Interface(
|
| 16 |
+
fn=load_mesh,
|
| 17 |
+
inputs=inputs,
|
| 18 |
+
outputs=outputs,
|
| 19 |
+
examples=[
|
| 20 |
+
[os.path.join(os.path.dirname(__file__), "FinalBaseMesh.obj")],
|
| 21 |
+
[os.path.join(os.path.dirname(__file__), "BEAR_BLK.OBJ")]
|
| 22 |
+
],
|
| 23 |
+
description=description,
|
| 24 |
+
cache_examples=True,
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
demo.launch()
|