Spaces:
Runtime error
Runtime error
downscaled examples
Browse files
app.py
CHANGED
@@ -289,7 +289,7 @@ def run_main_app(semantic_concept, word, script, font_selected, prompt_suffix, n
|
|
289 |
|
290 |
if step % skip == 0:
|
291 |
img_tensor = x.detach().cpu()
|
292 |
-
img_tensor = torch.nn.functional.interpolate(img_tensor, size=(
|
293 |
img_tensor = img_tensor.permute(0, 2, 3, 1).squeeze(0)
|
294 |
gif_frames += [img_tensor.numpy()]
|
295 |
|
@@ -442,6 +442,7 @@ with gr.Blocks() as demo:
|
|
442 |
["音乐", "music", "Simplified Chinese", "Chinese: ZhiMangXing-Regular", 250, 42],
|
443 |
["μουσική", "music", "Greek", "Greek: EBGaramond-Regular", 250, 42],
|
444 |
["музыка", "music", "Cyrillic", "Cyrillic: Geologica_Auto-Regular", 250, 42],
|
|
|
445 |
]
|
446 |
|
447 |
demo.queue(max_size=10, concurrency_count=2)
|
|
|
289 |
|
290 |
if step % skip == 0:
|
291 |
img_tensor = x.detach().cpu()
|
292 |
+
img_tensor = torch.nn.functional.interpolate(img_tensor, size=(200, 200), mode='bilinear', align_corners=False)
|
293 |
img_tensor = img_tensor.permute(0, 2, 3, 1).squeeze(0)
|
294 |
gif_frames += [img_tensor.numpy()]
|
295 |
|
|
|
442 |
["音乐", "music", "Simplified Chinese", "Chinese: ZhiMangXing-Regular", 250, 42],
|
443 |
["μουσική", "music", "Greek", "Greek: EBGaramond-Regular", 250, 42],
|
444 |
["музыка", "music", "Cyrillic", "Cyrillic: Geologica_Auto-Regular", 250, 42],
|
445 |
+
["இசை", "music", "Tamil", "Tamil: HindMadurai-Regular", 250, 42],
|
446 |
]
|
447 |
|
448 |
demo.queue(max_size=10, concurrency_count=2)
|