AchyuthGamer commited on
Commit
d955865
โ€ข
1 Parent(s): a5a7a91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -5,7 +5,7 @@ from gtts import gTTS
5
  import os
6
 
7
  # Constants
8
- TITLE = "๐—™๐—น๐—ฎ๐˜„๐—น๐—ฒ๐˜€๐˜€๐—”๐—œ ๐Ÿ’ฌ"
9
  DESCRIPTION = """
10
  ----
11
  า“สŸแด€แดกสŸแด‡ssแด€ษช | แด„สœแด€แด›ษขแด˜แด›'s ษดษชษขสœแด›แดแด€ส€แด‡ ๐Ÿ˜ˆ
@@ -85,7 +85,7 @@ if wav_audio_data is not None:
85
  # transcribe audio
86
  response = predict(message=prompt)
87
 
88
- with st.chat_message("assistant", avatar='๐Ÿ˜Ž'):
89
  st.markdown(response)
90
 
91
  # Convert AI response to speech
@@ -100,7 +100,7 @@ if wav_audio_data is not None:
100
  # React to user input
101
  if prompt := textinput:
102
  # Display user message in chat message container
103
- st.chat_message("human", avatar="๐Ÿ˜Ž").markdown(prompt)
104
  # Add user message to chat history
105
  st.session_state.messages.append({"role": "human", "content": prompt})
106
 
@@ -110,7 +110,7 @@ if prompt := textinput:
110
  speech_file = text_to_speech(response)
111
 
112
  # Display assistant response in chat message container
113
- with st.chat_message("assistant", avatar='๐Ÿ˜Ž'):
114
  st.markdown(response)
115
 
116
  # Play the generated speech
 
5
  import os
6
 
7
  # Constants
8
+ TITLE = "๐—™๐—น๐—ฎ๐˜„๐—น๐—ฒ๐˜€๐˜€๐—”๐—œ ๐Ÿ”ฅ"
9
  DESCRIPTION = """
10
  ----
11
  า“สŸแด€แดกสŸแด‡ssแด€ษช | แด„สœแด€แด›ษขแด˜แด›'s ษดษชษขสœแด›แดแด€ส€แด‡ ๐Ÿ˜ˆ
 
85
  # transcribe audio
86
  response = predict(message=prompt)
87
 
88
+ with st.chat_message("assistant", avatar='๐Ÿ”ฅ'):
89
  st.markdown(response)
90
 
91
  # Convert AI response to speech
 
100
  # React to user input
101
  if prompt := textinput:
102
  # Display user message in chat message container
103
+ st.chat_message("human", avatar="๐Ÿ”ฅ").markdown(prompt)
104
  # Add user message to chat history
105
  st.session_state.messages.append({"role": "human", "content": prompt})
106
 
 
110
  speech_file = text_to_speech(response)
111
 
112
  # Display assistant response in chat message container
113
+ with st.chat_message("assistant", avatar='๐Ÿ”ฅ'):
114
  st.markdown(response)
115
 
116
  # Play the generated speech