Update app.py
Browse files
app.py
CHANGED
@@ -5,16 +5,12 @@ from gtts import gTTS
|
|
5 |
import gradio as gr
|
6 |
from groq import Groq
|
7 |
|
8 |
-
|
9 |
-
|
10 |
# Load Whisper model for transcription
|
11 |
model = whisper.load_model("large-v3-turbo")
|
12 |
|
13 |
key = os.getenv("GROQ_API")
|
14 |
client = Groq(api_key = key)
|
15 |
|
16 |
-
|
17 |
-
|
18 |
# Function to get the LLM response from Groq
|
19 |
def get_llm_response(user_input):
|
20 |
chat_completion = client.chat.completions.create(
|
|
|
5 |
import gradio as gr
|
6 |
from groq import Groq
|
7 |
|
|
|
|
|
8 |
# Load Whisper model for transcription
|
9 |
model = whisper.load_model("large-v3-turbo")
|
10 |
|
11 |
key = os.getenv("GROQ_API")
|
12 |
client = Groq(api_key = key)
|
13 |
|
|
|
|
|
14 |
# Function to get the LLM response from Groq
|
15 |
def get_llm_response(user_input):
|
16 |
chat_completion = client.chat.completions.create(
|