Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,12 +14,12 @@ def transcribe_audio(audio_path):
|
|
14 |
"""
|
15 |
try:
|
16 |
# Upload the audio file
|
17 |
-
uploaded_file = client.files.upload(file=audio_path)
|
18 |
|
19 |
# Send the file to Gemini for transcription
|
20 |
response = client.models.generate_content(
|
21 |
model='gemini-2.0-flash',
|
22 |
-
contents=['Transcribe the input audio & return only the transcription.',
|
23 |
)
|
24 |
|
25 |
print("Transcription Response:", response.text)
|
|
|
14 |
"""
|
15 |
try:
|
16 |
# Upload the audio file
|
17 |
+
#uploaded_file = client.files.upload(file=audio_path)
|
18 |
|
19 |
# Send the file to Gemini for transcription
|
20 |
response = client.models.generate_content(
|
21 |
model='gemini-2.0-flash',
|
22 |
+
contents=['Transcribe the input audio & return only the transcription.', audio_path]
|
23 |
)
|
24 |
|
25 |
print("Transcription Response:", response.text)
|