mgokg commited on
Commit
f47f413
·
verified ·
1 Parent(s): 161f398

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ model = genai.GenerativeModel(
33
  model_name="gemini-2.0-flash-exp",
34
  generation_config=generation_config,
35
  )
36
- audio_bytes = st.audio_input("Click to record")
37
  # Session State für Chatverlauf
38
  if "chat_session" not in st.session_state:
39
  st.session_state.chat_session = model.start_chat(history=[])
@@ -106,4 +106,4 @@ if user_input:
106
  response = st.session_state.chat_session.send_message(full_prompt)
107
  response_text = response.candidates[0].content.parts[0].text if response.candidates else "Keine Antwort"
108
  st.session_state.display_history.append(("assistant", response_text))
109
- st.rerun()
 
33
  model_name="gemini-2.0-flash-exp",
34
  generation_config=generation_config,
35
  )
36
+
37
  # Session State für Chatverlauf
38
  if "chat_session" not in st.session_state:
39
  st.session_state.chat_session = model.start_chat(history=[])
 
106
  response = st.session_state.chat_session.send_message(full_prompt)
107
  response_text = response.candidates[0].content.parts[0].text if response.candidates else "Keine Antwort"
108
  st.session_state.display_history.append(("assistant", response_text))
109
+ #st.rerun()