mgokg commited on
Commit
539f77a
·
verified ·
1 Parent(s): 0b91f97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ if audio_bytes:
113
  else:
114
  #st.session_state.display_history.append(("user", transcription))
115
  websearch = websearch(transcription)
116
- full_prompt = f"{transcription}\nAntworte immer auf Deutsch\n Du findest die Antwort hier:\n{webearch}"
117
  response = st.session_state.chat_session.send_message(full_prompt)
118
  response_text = response.candidates[0].content.parts[0].text if response.candidates else "Keine Antwort"
119
  messages.chat_message("assistant").write(f"{response_text}")
 
113
  else:
114
  #st.session_state.display_history.append(("user", transcription))
115
  websearch = websearch(transcription)
116
+ full_prompt = f"{transcription}\nAntworte immer auf Deutsch\n Du findest die Antwort hier:\n{websearch}"
117
  response = st.session_state.chat_session.send_message(full_prompt)
118
  response_text = response.candidates[0].content.parts[0].text if response.candidates else "Keine Antwort"
119
  messages.chat_message("assistant").write(f"{response_text}")