Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -156,6 +156,8 @@ import whisper
|
|
156 |
import requests
|
157 |
from flask import Flask, request, jsonify, render_template
|
158 |
import tempfile
|
|
|
|
|
159 |
|
160 |
app = Flask(__name__)
|
161 |
print("APP IS RUNNING, ANIKET")
|
@@ -180,7 +182,7 @@ GEMINI_API_KEY = API_KEY
|
|
180 |
|
181 |
# Load Whisper AI model at startup
|
182 |
print("Loading Whisper AI model..., ANIKET")
|
183 |
-
whisper_model = whisper.load_model("base"
|
184 |
print("Whisper AI model loaded successfully, ANIKET")
|
185 |
|
186 |
|
|
|
156 |
import requests
|
157 |
from flask import Flask, request, jsonify, render_template
|
158 |
import tempfile
|
159 |
+
import warnings
|
160 |
+
warnings.filterwarnings("ignore", message="FP16 is not supported on CPU; using FP32 instead")
|
161 |
|
162 |
app = Flask(__name__)
|
163 |
print("APP IS RUNNING, ANIKET")
|
|
|
182 |
|
183 |
# Load Whisper AI model at startup
|
184 |
print("Loading Whisper AI model..., ANIKET")
|
185 |
+
whisper_model = whisper.load_model("base") # Choose model size: tiny, base, small, medium, large
|
186 |
print("Whisper AI model loaded successfully, ANIKET")
|
187 |
|
188 |
|