Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def process_file():
|
|
99 |
|
100 |
def process_audio(file_path, target_language):
|
101 |
# Transcribe using Gemini
|
102 |
-
model = genai.GenerativeModel("gemini-2.0-flash
|
103 |
uploaded_file = genai.upload_file(path=file_path)
|
104 |
|
105 |
try:
|
@@ -158,4 +158,4 @@ def download_file(filename):
|
|
158 |
return jsonify({'error': 'File not found'}), 404
|
159 |
|
160 |
if __name__ == '__main__':
|
161 |
-
app.run(host=
|
|
|
99 |
|
100 |
def process_audio(file_path, target_language):
|
101 |
# Transcribe using Gemini
|
102 |
+
model = genai.GenerativeModel("gemini-2.0-flash")
|
103 |
uploaded_file = genai.upload_file(path=file_path)
|
104 |
|
105 |
try:
|
|
|
158 |
return jsonify({'error': 'File not found'}), 404
|
159 |
|
160 |
if __name__ == '__main__':
|
161 |
+
app.run(host='0.0.0.0', port=5000, debug=True)
|