Spaces:
Runtime error
Runtime error
Badr AlKhamissi
commited on
Commit
·
22cbcea
1
Parent(s):
725ab64
cast seed to int + cache examples
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def set_config(semantic_concept, word, prompt_suffix, font_name, num_steps, seed
|
|
99 |
cfg.word = word
|
100 |
cfg.optimized_letter = word
|
101 |
cfg.font = font_name
|
102 |
-
cfg.seed = seed
|
103 |
cfg.num_iter = num_steps
|
104 |
cfg.batch_size = 1
|
105 |
cfg.loss.tone.dist_loss_weight = dist_loss_weight
|
@@ -382,7 +382,7 @@ with gr.Blocks() as demo:
|
|
382 |
result2
|
383 |
],
|
384 |
fn=run_main_ex,
|
385 |
-
cache_examples=
|
386 |
|
387 |
|
388 |
# inputs
|
|
|
99 |
cfg.word = word
|
100 |
cfg.optimized_letter = word
|
101 |
cfg.font = font_name
|
102 |
+
cfg.seed = int(seed)
|
103 |
cfg.num_iter = num_steps
|
104 |
cfg.batch_size = 1
|
105 |
cfg.loss.tone.dist_loss_weight = dist_loss_weight
|
|
|
382 |
result2
|
383 |
],
|
384 |
fn=run_main_ex,
|
385 |
+
cache_examples=True)
|
386 |
|
387 |
|
388 |
# inputs
|