We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d876cff commit 6e73abfCopy full SHA for 6e73abf
ollama_manager/ui/image_chat.py
@@ -96,11 +96,11 @@ def run():
96
st.title("🤖 Ollama Manager: Vision Chat")
97
98
for message in st.session_state["messages"]:
99
- match message["role"]:
100
- case "assistant":
101
- st.chat_message("assistant").write(message["content"])
102
- case "user":
103
- st.chat_message("human").write(message["content"])
+ message_role = message["role"]
+ if message_role == "assistant":
+ st.chat_message("assistant").write(message["content"])
+ if message_role == "user":
+ st.chat_message("human").write(message["content"])
104
105
chat_input = st.chat_input(
106
placeholder="Write your message...",
0 commit comments