Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def transcribe(audio, text):
|
|
| 31 |
user_input = transcript.get("text", "") if isinstance(transcript, dict) else ""
|
| 32 |
user_input = transcript.text
|
| 33 |
print("Transcription:", user_input)
|
| 34 |
-
|
| 35 |
user_input = text
|
| 36 |
|
| 37 |
conversation_tokens = sum(len(message['content'].split()) for message in all_messages)
|
|
|
|
| 31 |
user_input = transcript.get("text", "") if isinstance(transcript, dict) else ""
|
| 32 |
user_input = transcript.text
|
| 33 |
print("Transcription:", user_input)
|
| 34 |
+
else if text:
|
| 35 |
user_input = text
|
| 36 |
|
| 37 |
conversation_tokens = sum(len(message['content'].split()) for message in all_messages)
|