Skip to content

Commit

Permalink
🛂 fixed minor issues in fly
Browse files Browse the repository at this point in the history
  • Loading branch information
steinathan committed Aug 10, 2024
1 parent 4cf2d48 commit 2b67154
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions app/reels_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,8 @@ async def start(self) -> str:

video_clip = await self.video_generator.add_fade_out(video_clip)

video_clip.write_videofile(
os.path.join(self.cwd, "master__final__video.mp4"), threads=self.threads
)
self.final_video_path = os.path.join(self.cwd, "master__final__video.mp4")
video_clip.write_videofile(self.final_video_path, threads=self.threads)

logger.info((f"Final video: {self.final_video_path}"))
logger.info("video generated successfully!")
Expand Down
4 changes: 2 additions & 2 deletions app/synth_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class SynthConfig(BaseModel):
voice_provider: Literal["elevenlabs", "tiktok"] = "tiktok"
voice_provider: Literal["elevenlabs", "tiktok"] = "elevenlabs"
voice: str = "en_male_narration"


Expand All @@ -25,7 +25,7 @@ def __init__(self, cwd: str, config: SynthConfig):
os.makedirs(self.base, exist_ok=True)

self.client = ElevenLabs(
api_key=os.getenv("ELEVENLABS_API_KEY"),
api_key=os.getenv("ELEVENLABS_API_KEY"),
)

def set_filename(self):
Expand Down
2 changes: 1 addition & 1 deletion app/video_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class VideoGeneratorConfig(BaseModel):
text_color: str = "white"
stroke_width: int = 5
font_path: str = "fonts/bold_font.ttf"
bg_color: str = "yellow"
bg_color: str = "gray20"
subtitles_position: str = "center,center"
threads: int = multiprocessing.cpu_count()

Expand Down
4 changes: 2 additions & 2 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ min_machines_running = 0
processes = ['app']

[[vm]]
memory = '2gb'
memory = '1gb'
cpu_kind = 'shared'
cpus = 2
cpus = 1

0 comments on commit 2b67154

Please sign in to comment.