Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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()
|