Spaces:
Running
on
Zero
Running
on
Zero
优化界面和交互
Browse files
app.py
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
title = "## Image to 3D"
|
| 4 |
-
description = "
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
with gr.Blocks().queue() as demo:
|
| 8 |
gr.Markdown(title)
|
|
|
|
| 1 |
+
import spaces
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
title = "## Image to 3D"
|
| 5 |
+
description = "Image to 3D"
|
| 6 |
|
| 7 |
+
@spaces.GPU(duration=60)
|
| 8 |
+
def gen_shape():
|
| 9 |
+
print("do nothing")
|
| 10 |
+
|
| 11 |
|
| 12 |
with gr.Blocks().queue() as demo:
|
| 13 |
gr.Markdown(title)
|