Auto-deploy from GitHub Actions
Browse files144 unmodified lines14514614714814915015115215315415549 unmodified lines205206207208209210211212213214215144 unmodified linesif not user_images:return JSONResponse({"error": "could not decode frames"}, status_code=400)try:load_model()except Exception as e:return JSONResponse({"error": f"model load failed: {e}"}, status_code=500)if ref_images:prompt = (f'You are an ASL coach. The student is learning to sign "{word}".\n'49 unmodified linesif not images:return JSONResponse({"error": "bad frames"}, status_code=400)try:load_model()except Exception as e:return JSONResponse({"error": f"model load failed: {e}"}, status_code=500)n = len(images)prompt = (f'These {n} images show the sequence of the ASL sign for "{word}" at 1 frame per second. '144 unmodified lines14514614714814915049 unmodified lines200201202203204205144 unmodified linesif not user_images:return JSONResponse({"error": "could not decode frames"}, status_code=400)if ref_images:prompt = (f'You are an ASL coach. The student is learning to sign "{word}".\n'49 unmodified linesif not images:return JSONResponse({"error": "bad frames"}, status_code=400)n = len(images)prompt = (f'These {n} images show the sequence of the ASL sign for "{word}" at 1 frame per second. '
app.py-10