VeuReu commited on
Commit
f511ee6
·
1 Parent(s): 375f779

Upload 6 files

Browse files
Files changed (2) hide show
  1. api_client.py +2 -2
  2. page_modules/validation.py +1 -0
api_client.py CHANGED
@@ -209,10 +209,10 @@ class APIClient:
209
  def upload_pending_video(self, video_bytes: bytes, filename: str) -> dict:
210
  """Sube un vídeo pendiente al engine (carpeta /data/peding_videos).
211
 
212
- Usa el endpoint POST /peding_videos/upload_peding_video.
213
  """
214
 
215
- url = f"{self.base_url}/peding_videos/upload_peding_video"
216
  files = {"video": (filename, io.BytesIO(video_bytes), "video/mp4")}
217
  # El backend engine requereix un token de query (?token=...) validat contra HF_TOKEN
218
  hf_token = os.getenv("HF_TOKEN")
 
209
  def upload_pending_video(self, video_bytes: bytes, filename: str) -> dict:
210
  """Sube un vídeo pendiente al engine (carpeta /data/peding_videos).
211
 
212
+ Usa el endpoint POST /peding_videos/upload_pending_video.
213
  """
214
 
215
+ url = f"{self.base_url}/peding_videos/upload_pending_video"
216
  files = {"video": (filename, io.BytesIO(video_bytes), "video/mp4")}
217
  # El backend engine requereix un token de query (?token=...) validat contra HF_TOKEN
218
  hf_token = os.getenv("HF_TOKEN")
page_modules/validation.py CHANGED
@@ -85,6 +85,7 @@ def render_validation_page(
85
  try:
86
  resp = api_client.list_pending_videos()
87
  _log(f"[pending_videos] list_pending_videos raw resp type= {type(resp)}")
 
88
  except Exception as e_list:
89
  _log(f"[pending_videos] Error cridant list_pending_videos: {e_list}")
90
  resp = {"error": "exception"}
 
85
  try:
86
  resp = api_client.list_pending_videos()
87
  _log(f"[pending_videos] list_pending_videos raw resp type= {type(resp)}")
88
+ _log(f"[pending_videos] list_pending_videos raw resp content= {repr(resp)}")
89
  except Exception as e_list:
90
  _log(f"[pending_videos] Error cridant list_pending_videos: {e_list}")
91
  resp = {"error": "exception"}