mgokg commited on
Commit
6ac5d17
·
verified ·
1 Parent(s): 209811f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -93,7 +93,8 @@ if audio_bytes:
93
  full_prompt = f"{transcription}\nAntworte immer auf Deutsch"
94
  response = st.session_state.chat_session.send_message(full_prompt)
95
  response_text = response.candidates[0].content.parts[0].text if response.candidates else "Keine Antwort"
96
- st.session_state.display_history.append(("assistant", response_text))
 
97
  #st.rerun()
98
  except Exception as e:
99
  st.error(f"Audioprocessing fehlgeschlagen: {str(e)}")
 
93
  full_prompt = f"{transcription}\nAntworte immer auf Deutsch"
94
  response = st.session_state.chat_session.send_message(full_prompt)
95
  response_text = response.candidates[0].content.parts[0].text if response.candidates else "Keine Antwort"
96
+ st.write(response_text)
97
+ #st.session_state.display_history.append(("assistant", response_text))
98
  #st.rerun()
99
  except Exception as e:
100
  st.error(f"Audioprocessing fehlgeschlagen: {str(e)}")