Skip to content

Commit

Permalink
fix ollama model init error
Browse files Browse the repository at this point in the history
  • Loading branch information
scattter committed Sep 10, 2024
1 parent 1008610 commit 2cb4206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def get_last_url_from_chat(messages):

def initialize_web_scraper_chat(url=None):
if st.session_state.selected_model.startswith("ollama:"):
model = OllamaModel(st.session_state.selected_model[7:])
model = st.session_state.selected_model
else:
model = st.session_state.selected_model

Expand Down

0 comments on commit 2cb4206

Please sign in to comment.