Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -237,7 +237,8 @@ def run_main_app(semantic_concept, word, letter, font_name, num_steps, example=0
|
|
| 237 |
combine_word(cfg.word, cfg.optimized_letter, cfg.font, cfg.experiment_dir)
|
| 238 |
|
| 239 |
image = os.path.join(cfg.experiment_dir,f"{cfg.font}_{cfg.word}_{cfg.optimized_letter}.svg")
|
| 240 |
-
yield gr.update(value=filename_init,visible=True),gr.update(visible=False),gr.update(value=image,visible=True)
|
|
|
|
| 241 |
|
| 242 |
|
| 243 |
with gr.Blocks() as demo:
|
|
@@ -302,7 +303,7 @@ with gr.Blocks() as demo:
|
|
| 302 |
"BUNNY",
|
| 303 |
"Y",
|
| 304 |
"KaushanScript-Regular",
|
| 305 |
-
|
| 306 |
],
|
| 307 |
# [
|
| 308 |
# "LION",
|
|
|
|
| 237 |
combine_word(cfg.word, cfg.optimized_letter, cfg.font, cfg.experiment_dir)
|
| 238 |
|
| 239 |
image = os.path.join(cfg.experiment_dir,f"{cfg.font}_{cfg.word}_{cfg.optimized_letter}.svg")
|
| 240 |
+
# yield gr.update(value=filename_init,visible=True),gr.update(visible=False),gr.update(value=image,visible=True)
|
| 241 |
+
yield gr.update(value=f"<img src={filename_init}/>",visible=True),gr.update(visible=False),gr.update(value=image,visible=True)
|
| 242 |
|
| 243 |
|
| 244 |
with gr.Blocks() as demo:
|
|
|
|
| 303 |
"BUNNY",
|
| 304 |
"Y",
|
| 305 |
"KaushanScript-Regular",
|
| 306 |
+
1# 500
|
| 307 |
],
|
| 308 |
# [
|
| 309 |
# "LION",
|