Spaces:
Sleeping
Sleeping
Added base url
Browse files
app.py
CHANGED
|
@@ -28,6 +28,14 @@ print("Loading Whisper AI model...")
|
|
| 28 |
whisper_model = whisper.load_model("base") # Choose model size: tiny, base, small, medium, large
|
| 29 |
print("Whisper AI model loaded successfully.")
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
@app.route('/process-video', methods=['POST'])
|
| 32 |
def process_video():
|
| 33 |
"""
|
|
|
|
| 28 |
whisper_model = whisper.load_model("base") # Choose model size: tiny, base, small, medium, large
|
| 29 |
print("Whisper AI model loaded successfully.")
|
| 30 |
|
| 31 |
+
|
| 32 |
+
# Define the "/" endpoint for health check
|
| 33 |
+
@app.route("/", methods=["GET"])
|
| 34 |
+
def health_check():
|
| 35 |
+
return jsonify({"status": "success", "message": "API is running successfully!"}), 200
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
|
| 39 |
@app.route('/process-video', methods=['POST'])
|
| 40 |
def process_video():
|
| 41 |
"""
|