Spaces:
Build error
Build error
faizr206 commited on
Commit ·
974a5d0
1
Parent(s): b388a3b
another upload fix
Browse files213 unmodified lines2142152162172182192205 unmodified lines226227228229230231213 unmodified linesreturn mp4.read_bytes(), png_pathdef _def _upload_image_to_gemini(png_path: Path):"""Upload an image to Gemini Files API and return the file reference."""if not client or not png_path or not png_path.exists():return None5 unmodified lines)return file_refdef llm_generate_manim_code(prompt: str, previous_code: Optional[str] = None) -> str:"""First-pass generation (capture-aware)."""if not client:213 unmodified lines2142152162172182192205 unmodified lines226227228229230231232213 unmodified linesreturn mp4.read_bytes(), png_pathdef _upload_image_to_gemini(png_path: Path):"""Upload an image to Gemini Files API and return the file reference."""if not client or not png_path or not png_path.exists():return None5 unmodified lines)return file_refdef llm_generate_manim_code(prompt: str, previous_code: Optional[str] = None) -> str:"""First-pass generation (capture-aware)."""if not client:
app/main.py+2-1