Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ from flask import Flask, request, jsonify, render_template
|
|
5 |
from dotenv import load_dotenv
|
6 |
from deepgram import DeepgramClient, PrerecordedOptions
|
7 |
import tempfile
|
|
|
8 |
|
9 |
import warnings
|
10 |
warnings.filterwarnings("ignore", message="FP16 is not supported on CPU; using FP32 instead")
|
@@ -206,7 +207,7 @@ def query_gemini_api(transcription):
|
|
206 |
f"{GEMINI_API_ENDPOINT}?key={GEMINI_API_KEY}",
|
207 |
json=payload,
|
208 |
headers=headers,
|
209 |
-
|
210 |
)
|
211 |
|
212 |
# Raise error if response code is not 200
|
|
|
5 |
from dotenv import load_dotenv
|
6 |
from deepgram import DeepgramClient, PrerecordedOptions
|
7 |
import tempfile
|
8 |
+
import jsonify
|
9 |
|
10 |
import warnings
|
11 |
warnings.filterwarnings("ignore", message="FP16 is not supported on CPU; using FP32 instead")
|
|
|
207 |
f"{GEMINI_API_ENDPOINT}?key={GEMINI_API_KEY}",
|
208 |
json=payload,
|
209 |
headers=headers,
|
210 |
+
|
211 |
)
|
212 |
|
213 |
# Raise error if response code is not 200
|