bkhmsi commited on
Commit
ceced39
1 Parent(s): fa9dbc5

still trying to fix issue

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -275,9 +275,9 @@ def run_main_app(semantic_concept, word, script, prompt_suffix, font_name, num_s
275
  # writer = imageio.get_writer(filename, fps=20)
276
  # for frame in gif_frames: writer.append_data(frame)
277
  # writer.close()
278
- print(gif_frames[0])
279
  print(len(gif_frames))
280
- imageio.mimsave(filename, np.array(gif_frames).astype(np.uint8))
281
  # imageio.mimsave(filename, np.array(gif_frames))
282
 
283
  yield gr.update(value=filename_init,visible=True),gr.update(visible=False),gr.update(value=filename,visible=True),gr.update(value=cfg.caption,visible=True),gr.update(value=cfg.seed,visible=True)
@@ -393,7 +393,7 @@ with gr.Blocks() as demo:
393
  with gr.Row():
394
  # examples
395
  examples = [
396
- ["قطة", "Cat", "Arabic", 10, 42],
397
  # ["猫", "Cat", "Simplified Chinese", 250, 42],
398
  # ["γάτα", "Cat", "Greek", 250, 42],
399
  # ["кошка", "Cat", "Cyrillic", 250, 42],
 
275
  # writer = imageio.get_writer(filename, fps=20)
276
  # for frame in gif_frames: writer.append_data(frame)
277
  # writer.close()
278
+ gif_frames = np.array(gif_frames) * 255
279
  print(len(gif_frames))
280
+ imageio.mimsave(filename, gif_frames.astype(np.uint8))
281
  # imageio.mimsave(filename, np.array(gif_frames))
282
 
283
  yield gr.update(value=filename_init,visible=True),gr.update(visible=False),gr.update(value=filename,visible=True),gr.update(value=cfg.caption,visible=True),gr.update(value=cfg.seed,visible=True)
 
393
  with gr.Row():
394
  # examples
395
  examples = [
396
+ ["قطة", "Cat", "Arabic", 50, 42],
397
  # ["猫", "Cat", "Simplified Chinese", 250, 42],
398
  # ["γάτα", "Cat", "Greek", 250, 42],
399
  # ["кошка", "Cat", "Cyrillic", 250, 42],