Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
hg_app.py
CHANGED
@@ -266,7 +266,7 @@ def build_app():
|
|
266 |
info='Example: A 3D model of a cute cat, white background')
|
267 |
|
268 |
with gr.Accordion('Advanced Options', open=False):
|
269 |
-
num_steps = gr.Slider(maximum=50, minimum=20, value=
|
270 |
octree_resolution = gr.Dropdown([256, 384, 512], value=256, label='Octree Resolution')
|
271 |
cfg_scale = gr.Number(value=5.5, label='Guidance Scale')
|
272 |
seed = gr.Slider(maximum=1e7, minimum=0, value=1234, label='Seed')
|
@@ -418,6 +418,6 @@ if __name__ == '__main__':
|
|
418 |
app.mount("/static", StaticFiles(directory=static_dir), name="static")
|
419 |
|
420 |
demo = build_app()
|
421 |
-
demo.queue(max_size=
|
422 |
app = gr.mount_gradio_app(app, demo, path="/")
|
423 |
uvicorn.run(app, host=IP, port=PORT)
|
|
|
266 |
info='Example: A 3D model of a cute cat, white background')
|
267 |
|
268 |
with gr.Accordion('Advanced Options', open=False):
|
269 |
+
num_steps = gr.Slider(maximum=50, minimum=20, value=50, step=1, label='Inference Steps')
|
270 |
octree_resolution = gr.Dropdown([256, 384, 512], value=256, label='Octree Resolution')
|
271 |
cfg_scale = gr.Number(value=5.5, label='Guidance Scale')
|
272 |
seed = gr.Slider(maximum=1e7, minimum=0, value=1234, label='Seed')
|
|
|
418 |
app.mount("/static", StaticFiles(directory=static_dir), name="static")
|
419 |
|
420 |
demo = build_app()
|
421 |
+
demo.queue(max_size=3)
|
422 |
app = gr.mount_gradio_app(app, demo, path="/")
|
423 |
uvicorn.run(app, host=IP, port=PORT)
|