Spaces:
Sleeping
Sleeping
removed audio
Browse files
app.py
CHANGED
@@ -92,11 +92,11 @@ async def greet(product,description):
|
|
92 |
],
|
93 |
model="llama-guard-3-8b",
|
94 |
)
|
|
|
95 |
warning_message = chat_completion.choices[0].message.content
|
96 |
if warning_message != 'safe':
|
97 |
-
chat = [chat_completion.choices[0].message.content]
|
98 |
#processed_audio = combine_audio_files(text_to_speech([chat_completion.choices[0].message.content]))
|
99 |
-
|
100 |
else:
|
101 |
output = llm.create_chat_completion(
|
102 |
messages=[
|
|
|
92 |
],
|
93 |
model="llama-guard-3-8b",
|
94 |
)
|
95 |
+
print(chat_completion)
|
96 |
warning_message = chat_completion.choices[0].message.content
|
97 |
if warning_message != 'safe':
|
|
|
98 |
#processed_audio = combine_audio_files(text_to_speech([chat_completion.choices[0].message.content]))
|
99 |
+
return warning_message
|
100 |
else:
|
101 |
output = llm.create_chat_completion(
|
102 |
messages=[
|