Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -49,9 +49,7 @@ def gesprek_met_ai(audio_file):
|
|
| 49 |
)
|
| 50 |
return tekst, response.choices[0].message.content
|
| 51 |
except Exception as e:
|
| 52 |
-
return "Fout bij spraakherkenning of verwerking.", "Fout bij AI-aanroep:
|
| 53 |
-
|
| 54 |
-
{str(e)}"
|
| 55 |
|
| 56 |
# Styling
|
| 57 |
css = """
|
|
|
|
| 49 |
)
|
| 50 |
return tekst, response.choices[0].message.content
|
| 51 |
except Exception as e:
|
| 52 |
+
return "Fout bij spraakherkenning of verwerking.", "Fout bij AI-aanroep: " + str(e)
|
|
|
|
|
|
|
| 53 |
|
| 54 |
# Styling
|
| 55 |
css = """
|