Skip to content

Commit

Permalink
[CLEANUP]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Apr 16, 2024
1 parent 7df5a69 commit 6510332
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions servers/text_to_video/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
EulerDiscreteScheduler,
MotionAdapter,
)
from diffusers.utils import export_to_gif, export_to_video
from diffusers.utils import export_to_gif
from dotenv import load_dotenv
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
Expand Down Expand Up @@ -68,10 +68,9 @@ def text_to_video(
num_inference_steps=inference_steps,
)
outputs.append(output)
if output_type == ".gif":
out = export_to_gif([output], f"{output_path}_{i}.gif")
else:
out = export_to_video([output], f"{output_path}_{i}.mp4")
out = export_to_gif([output], f"{output_path}_{i}.gif")
# else:
# out = export_to_video([output], f"{output_path}_{i}.mp4")
# output = pipe(
# prompt = task,
# guidance_scale = guidance_scale,
Expand All @@ -84,5 +83,5 @@ def text_to_video(
return None


out = text_to_video(task="A girl in hijab studying in a library", n=5)
out = text_to_video(task="A girl in hijab studying in a library")
print(out)

0 comments on commit 6510332

Please sign in to comment.