Spaces:
Runtime error
Runtime error
Pranav Mishra
Claude
commited on
Commit
·
93ceaba
1
Parent(s):
f3c42b1
Update API version to 1.2.0 with ffmpeg support
Browse files- Version bump for ffmpeg system dependencies fix
- Audio processing now has proper ffmpeg/ffprobe support
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
app.py
CHANGED
|
@@ -95,7 +95,7 @@ def index():
|
|
| 95 |
return jsonify({
|
| 96 |
'message': 'Streaming Digit Classifier API',
|
| 97 |
'status': 'running',
|
| 98 |
-
'version': '1.
|
| 99 |
'available_processors': list(processors.keys()),
|
| 100 |
'documentation': 'Frontend at Vercel, Backend API at HF Spaces'
|
| 101 |
})
|
|
@@ -173,7 +173,7 @@ def process_audio():
|
|
| 173 |
result.update({
|
| 174 |
'audio_duration': round(duration, 3),
|
| 175 |
'file_size': len(audio_data),
|
| 176 |
-
'api_version': '1.
|
| 177 |
})
|
| 178 |
|
| 179 |
app.logger.info(f"Processed audio with {method}: '{result['predicted_digit']}' in {result['inference_time']}s")
|
|
@@ -231,7 +231,7 @@ def process_audio_chunk():
|
|
| 231 |
'segment_index': 0,
|
| 232 |
'segment_size': len(standardized_audio),
|
| 233 |
'is_streaming': True,
|
| 234 |
-
'api_version': '1.
|
| 235 |
})
|
| 236 |
|
| 237 |
app.logger.info(f"Streaming prediction: '{result['predicted_digit']}' "
|
|
@@ -294,7 +294,7 @@ def health_check():
|
|
| 294 |
'status': 'healthy',
|
| 295 |
'timestamp': time.time(),
|
| 296 |
'processors': processor_health,
|
| 297 |
-
'version': '1.
|
| 298 |
'deployment': 'huggingface-spaces'
|
| 299 |
})
|
| 300 |
|
|
|
|
| 95 |
return jsonify({
|
| 96 |
'message': 'Streaming Digit Classifier API',
|
| 97 |
'status': 'running',
|
| 98 |
+
'version': '1.2.0',
|
| 99 |
'available_processors': list(processors.keys()),
|
| 100 |
'documentation': 'Frontend at Vercel, Backend API at HF Spaces'
|
| 101 |
})
|
|
|
|
| 173 |
result.update({
|
| 174 |
'audio_duration': round(duration, 3),
|
| 175 |
'file_size': len(audio_data),
|
| 176 |
+
'api_version': '1.2.0'
|
| 177 |
})
|
| 178 |
|
| 179 |
app.logger.info(f"Processed audio with {method}: '{result['predicted_digit']}' in {result['inference_time']}s")
|
|
|
|
| 231 |
'segment_index': 0,
|
| 232 |
'segment_size': len(standardized_audio),
|
| 233 |
'is_streaming': True,
|
| 234 |
+
'api_version': '1.2.0'
|
| 235 |
})
|
| 236 |
|
| 237 |
app.logger.info(f"Streaming prediction: '{result['predicted_digit']}' "
|
|
|
|
| 294 |
'status': 'healthy',
|
| 295 |
'timestamp': time.time(),
|
| 296 |
'processors': processor_health,
|
| 297 |
+
'version': '1.2.0',
|
| 298 |
'deployment': 'huggingface-spaces'
|
| 299 |
})
|
| 300 |
|