Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,12 +8,13 @@ from gtts import gTTS
|
|
| 8 |
import gradio as gr
|
| 9 |
from groq import Groq
|
| 10 |
|
| 11 |
-
|
|
|
|
| 12 |
# Load Whisper model for transcription
|
| 13 |
model = whisper.load_model("base")
|
| 14 |
|
| 15 |
-
# Set up Groq API client
|
| 16 |
-
client = Groq(api_key=
|
| 17 |
|
| 18 |
# Function to get the LLM response from Groq
|
| 19 |
def get_llm_response(user_input):
|
|
|
|
| 8 |
import gradio as gr
|
| 9 |
from groq import Groq
|
| 10 |
|
| 11 |
+
GROQ_API_KEY = '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'
|
| 12 |
+
|
| 13 |
# Load Whisper model for transcription
|
| 14 |
model = whisper.load_model("base")
|
| 15 |
|
| 16 |
+
# Set up Groq API client
|
| 17 |
+
client = Groq(api_key=GROQ_API_KEY)
|
| 18 |
|
| 19 |
# Function to get the LLM response from Groq
|
| 20 |
def get_llm_response(user_input):
|