Spaces:
Runtime error
Runtime error
Commit
·
ae35066
1
Parent(s):
c589cac
Update app.py
Browse files
app.py
CHANGED
@@ -40,9 +40,6 @@ if user_input:
|
|
40 |
# Add user message to chat history
|
41 |
chat_history.append({"role": "user", "content": user_input})
|
42 |
|
43 |
-
# Display user message with markdown
|
44 |
-
st.markdown(f"**You:** {user_input}")
|
45 |
-
|
46 |
# Create model object
|
47 |
model = genai.GenerativeModel(model_name="gemini-pro")
|
48 |
|
@@ -56,9 +53,6 @@ if user_input:
|
|
56 |
# Add response message to chat history
|
57 |
chat_history.append({"role": "assistant", "content": response_text})
|
58 |
|
59 |
-
# Display response message with markdown
|
60 |
-
st.markdown(f"**Gemini Bot:** {response_text}")
|
61 |
-
|
62 |
# Update session state with chat history
|
63 |
st.session_state["chat_history"] = chat_history
|
64 |
|
|
|
40 |
# Add user message to chat history
|
41 |
chat_history.append({"role": "user", "content": user_input})
|
42 |
|
|
|
|
|
|
|
43 |
# Create model object
|
44 |
model = genai.GenerativeModel(model_name="gemini-pro")
|
45 |
|
|
|
53 |
# Add response message to chat history
|
54 |
chat_history.append({"role": "assistant", "content": response_text})
|
55 |
|
|
|
|
|
|
|
56 |
# Update session state with chat history
|
57 |
st.session_state["chat_history"] = chat_history
|
58 |
|