Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,8 +22,9 @@ def transcribe_audio(audio_path):
|
|
| 22 |
# In a real app, you would connect to a speech-to-text service
|
| 23 |
response = client.models.generate_content(
|
| 24 |
model='gemini-2.0-flash',
|
| 25 |
-
contents=['
|
| 26 |
)
|
|
|
|
| 27 |
|
| 28 |
return response.text
|
| 29 |
|
|
|
|
| 22 |
# In a real app, you would connect to a speech-to-text service
|
| 23 |
response = client.models.generate_content(
|
| 24 |
model='gemini-2.0-flash',
|
| 25 |
+
contents=['Transcribe the input audio', audio_path]
|
| 26 |
)
|
| 27 |
+
print(response.text)
|
| 28 |
|
| 29 |
return response.text
|
| 30 |
|