faizr206 commited on
Commit
974a5d0
·
1 Parent(s): b388a3b

another upload fix

Browse files
Files changed (1) hide show
  1. app/main.py +2 -1
app/main.py CHANGED
@@ -214,7 +214,7 @@ def _run_manim(scene_code: str, run_id: Optional[str] = None) -> Tuple[bytes, Op
214
 
215
  return mp4.read_bytes(), png_path
216
 
217
- def _def _upload_image_to_gemini(png_path: Path):
218
  """Upload an image to Gemini Files API and return the file reference."""
219
  if not client or not png_path or not png_path.exists():
220
  return None
@@ -226,6 +226,7 @@ def _def _upload_image_to_gemini(png_path: Path):
226
  )
227
  return file_ref
228
 
 
229
  def llm_generate_manim_code(prompt: str, previous_code: Optional[str] = None) -> str:
230
  """First-pass generation (capture-aware)."""
231
  if not client:
 
214
 
215
  return mp4.read_bytes(), png_path
216
 
217
+ def _upload_image_to_gemini(png_path: Path):
218
  """Upload an image to Gemini Files API and return the file reference."""
219
  if not client or not png_path or not png_path.exists():
220
  return None
 
226
  )
227
  return file_ref
228
 
229
+
230
  def llm_generate_manim_code(prompt: str, previous_code: Optional[str] = None) -> str:
231
  """First-pass generation (capture-aware)."""
232
  if not client: