Spaces:
Paused
Paused
jadechoghari
commited on
Commit
•
a49ecc2
1
Parent(s):
66f492a
Update app.py
Browse files
app.py
CHANGED
@@ -63,9 +63,9 @@ with gr.Blocks() as demo:
|
|
63 |
For more details, visit the [GitHub repository](https://github.com/LTH14/mar).
|
64 |
""")
|
65 |
|
66 |
-
seed = gr.Number(value=
|
67 |
num_ar_steps = gr.Slider(minimum=1, maximum=256, value=64, label="Number of AR Steps")
|
68 |
-
class_labels = gr.Textbox(value="207, 360, 388", label="Class Labels (comma-separated ImageNet labels)")
|
69 |
cfg_scale = gr.Slider(minimum=1, maximum=10, value=4, label="CFG Scale")
|
70 |
cfg_schedule = gr.Dropdown(choices=["constant", "linear"], label="CFG Schedule", value="constant")
|
71 |
|
@@ -81,10 +81,10 @@ with gr.Blocks() as demo:
|
|
81 |
generate_image,
|
82 |
inputs=[seed, num_ar_steps, class_labels, cfg_scale, cfg_schedule],
|
83 |
outputs=image_output,
|
84 |
-
examples=[
|
85 |
-
|
86 |
-
],
|
87 |
-
cache_examples=True
|
88 |
)
|
89 |
|
90 |
demo.launch()
|
|
|
63 |
For more details, visit the [GitHub repository](https://github.com/LTH14/mar).
|
64 |
""")
|
65 |
|
66 |
+
seed = gr.Number(value=0, label="Seed")
|
67 |
num_ar_steps = gr.Slider(minimum=1, maximum=256, value=64, label="Number of AR Steps")
|
68 |
+
class_labels = gr.Textbox(value="207, 360, 388, 113, 355, 980, 323, 979", label="Class Labels (comma-separated ImageNet labels)")
|
69 |
cfg_scale = gr.Slider(minimum=1, maximum=10, value=4, label="CFG Scale")
|
70 |
cfg_schedule = gr.Dropdown(choices=["constant", "linear"], label="CFG Schedule", value="constant")
|
71 |
|
|
|
81 |
generate_image,
|
82 |
inputs=[seed, num_ar_steps, class_labels, cfg_scale, cfg_schedule],
|
83 |
outputs=image_output,
|
84 |
+
# examples=[
|
85 |
+
# [0, 64, "207, 360, 388, 113, 355, 980, 323, 979", 4, "constant"],
|
86 |
+
# ],
|
87 |
+
# cache_examples=True
|
88 |
)
|
89 |
|
90 |
demo.launch()
|