Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,15 @@ from transcript import transcribe_audio # Import the transcription function
|
|
6 |
import numpy as np
|
7 |
import requests
|
8 |
from scipy.io.wavfile import write
|
|
|
9 |
|
10 |
# Load environment variables from .env file
|
11 |
# load_dotenv()
|
12 |
|
|
|
|
|
|
|
|
|
13 |
def song_history(message):
|
14 |
question = "Tell me the history or a fun fact of the song (in a single line!): " + message
|
15 |
completion = client.chat.completions.create(
|
|
|
6 |
import numpy as np
|
7 |
import requests
|
8 |
from scipy.io.wavfile import write
|
9 |
+
from groq import Groq
|
10 |
|
11 |
# Load environment variables from .env file
|
12 |
# load_dotenv()
|
13 |
|
14 |
+
client = Groq(
|
15 |
+
api_key=os.getenv("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"),
|
16 |
+
)
|
17 |
+
|
18 |
def song_history(message):
|
19 |
question = "Tell me the history or a fun fact of the song (in a single line!): " + message
|
20 |
completion = client.chat.completions.create(
|