Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,14 @@
|
|
1 |
#!/usr/bin/env python
|
2 |
|
3 |
import os
|
4 |
-
|
5 |
import gradio as gr
|
6 |
import torch
|
7 |
-
|
8 |
from app_image_to_3d import create_demo as create_demo_image_to_3d
|
9 |
from app_text_to_3d import create_demo as create_demo_text_to_3d
|
10 |
from model import Model
|
11 |
|
12 |
-
|
|
|
13 |
|
14 |
if not torch.cuda.is_available():
|
15 |
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
|
@@ -17,6 +16,7 @@ if not torch.cuda.is_available():
|
|
17 |
model = Model()
|
18 |
|
19 |
with gr.Blocks(css_paths="style.css") as demo:
|
|
|
20 |
gr.Markdown(DESCRIPTION)
|
21 |
gr.DuplicateButton(
|
22 |
value="Duplicate Space for private use",
|
|
|
1 |
#!/usr/bin/env python
|
2 |
|
3 |
import os
|
|
|
4 |
import gradio as gr
|
5 |
import torch
|
|
|
6 |
from app_image_to_3d import create_demo as create_demo_image_to_3d
|
7 |
from app_text_to_3d import create_demo as create_demo_text_to_3d
|
8 |
from model import Model
|
9 |
|
10 |
+
# Update the name in the description
|
11 |
+
DESCRIPTION = "# [TRIACX]"
|
12 |
|
13 |
if not torch.cuda.is_available():
|
14 |
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
|
|
|
16 |
model = Model()
|
17 |
|
18 |
with gr.Blocks(css_paths="style.css") as demo:
|
19 |
+
# Change the name in the UI
|
20 |
gr.Markdown(DESCRIPTION)
|
21 |
gr.DuplicateButton(
|
22 |
value="Duplicate Space for private use",
|