sarwarshafee8709809365 commited on
Commit
1504dc1
·
1 Parent(s): 6011d47

arabic added

Browse files
app.py CHANGED
@@ -97,4 +97,4 @@ with gr.Blocks() as demo:
97
  outputs=[chatbot_state, assistant_state_output, chatbot, tts_output, tool_output] # Reset state
98
  )
99
  # new_chat()
100
- demo.launch(share=True)
 
97
  outputs=[chatbot_state, assistant_state_output, chatbot, tts_output, tool_output] # Reset state
98
  )
99
  # new_chat()
100
+ demo.launch()
erp_core/__pycache__/asr_and_tts.cpython-311.pyc CHANGED
Binary files a/erp_core/__pycache__/asr_and_tts.cpython-311.pyc and b/erp_core/__pycache__/asr_and_tts.cpython-311.pyc differ
 
erp_core/asr_and_tts.py CHANGED
@@ -32,7 +32,6 @@ def transcribe(audio):
32
  transcription_response = openai_client.audio.transcriptions.create(
33
  model="whisper-1",
34
  file=audio_file,
35
- language="en",
36
  )
37
 
38
  transcription_text = transcription_response.text
 
32
  transcription_response = openai_client.audio.transcriptions.create(
33
  model="whisper-1",
34
  file=audio_file,
 
35
  )
36
 
37
  transcription_text = transcription_response.text
erp_core/runnable/__pycache__/primary_assistant_prompt.cpython-311.pyc CHANGED
Binary files a/erp_core/runnable/__pycache__/primary_assistant_prompt.cpython-311.pyc and b/erp_core/runnable/__pycache__/primary_assistant_prompt.cpython-311.pyc differ
 
erp_core/runnable/primary_assistant_prompt.py CHANGED
@@ -18,10 +18,10 @@ primary_assistant_prompt = ChatPromptTemplate.from_messages(
18
  "Your primary goal is to guide the user to the right department or help them complete specific tasks using the ERP tools at your disposal."
19
  "No matter how user starts the conversation, always start respectfully."
20
  "Introduce yourself as an ERP support assistant"
21
- "Start conversation respectfully. Pay salam to user saying 'Assalamu Alaikum'. Do not say 'Wa Alaikum Assalam'."
22
- "Do not pay salam in each turn. Pay salam only once per conversation."
23
  "User will either speak in english or arabic. In most cases, user will speak in english."
24
- "Detect the language And respond in the same language."
25
  "Do not speak any other language than english or arabic. This is very important."
26
  "For department-specific issues, route the user’s request to the appropriate department tool based on their needs."
27
  "Carefully listen to the user's input, identify their requirement, and confirm the department or action needed."
 
18
  "Your primary goal is to guide the user to the right department or help them complete specific tasks using the ERP tools at your disposal."
19
  "No matter how user starts the conversation, always start respectfully."
20
  "Introduce yourself as an ERP support assistant"
21
+ "Pay salam to user saying 'Assalamu Alaikum', do not say 'Wa Alaikum Assalam'. Only say 'Wa Alaikum Assalam' if user says 'Assalamu Alaikum'."
22
+ "Do not pay salam in each turn. Pay salam only once in the whole conversation."
23
  "User will either speak in english or arabic. In most cases, user will speak in english."
24
+ "Detect the language And respond in the same language as user speaks. If user speaks in arabic, respond in arabic. If user speaks in english, respond in english."
25
  "Do not speak any other language than english or arabic. This is very important."
26
  "For department-specific issues, route the user’s request to the appropriate department tool based on their needs."
27
  "Carefully listen to the user's input, identify their requirement, and confirm the department or action needed."
output.mp3 CHANGED
Binary files a/output.mp3 and b/output.mp3 differ