Update app_text_to_3d.py
Browse files- app_text_to_3d.py +7 -2
app_text_to_3d.py
CHANGED
|
@@ -6,10 +6,15 @@ from model import Model
|
|
| 6 |
from settings import CACHE_EXAMPLES, MAX_SEED
|
| 7 |
from utils import randomize_seed_fn
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
def create_demo(model: Model) -> gr.Blocks:
|
| 10 |
|
| 11 |
-
with gr.Blocks() as demo:
|
| 12 |
-
with gr.Box():
|
| 13 |
with gr.Row(elem_id='prompt-container'):
|
| 14 |
image_init = gr.Image(type="filepath", source="upload")
|
| 15 |
prompt = gr.Text(
|
|
|
|
| 6 |
from settings import CACHE_EXAMPLES, MAX_SEED
|
| 7 |
from utils import randomize_seed_fn
|
| 8 |
|
| 9 |
+
css="""
|
| 10 |
+
#col-container {max-width: 910px; margin-left: auto; margin-right: auto;}
|
| 11 |
+
a {text-decoration-line: underline; font-weight: 600;}
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
def create_demo(model: Model) -> gr.Blocks:
|
| 15 |
|
| 16 |
+
with gr.Blocks(css=css) as demo:
|
| 17 |
+
with gr.Box(elem_id="col-container"):
|
| 18 |
with gr.Row(elem_id='prompt-container'):
|
| 19 |
image_init = gr.Image(type="filepath", source="upload")
|
| 20 |
prompt = gr.Text(
|