Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
olyatjtaylo committed Apr 29, 2024
2 parents 4de31ad + cf15658 commit 48e16ab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
exclude = .venv
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import streamlit as st

with st.sidebar:
openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="password")
openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="")
"[Get an OpenAI API key](https://platform.openai.com/account/api-keys)"
"[View the source code](https://github.com/streamlit/llm-examples/blob/main/Chatbot.py)"
"[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/streamlit/llm-examples?quickstart=1)"
Expand Down
1 change: 0 additions & 1 deletion app_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,5 @@ def test_Langchain_Quickstart(langchain_llm):
at.text_input(key="chatbot_api_key").set_value(api_key)
print(at)
assert at.info[0].value == RESPONSE

# at.sidebar.text_input[0].set_value("sk-...")
# at.button[0].set_value(True).run()
8 changes: 1 addition & 7 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
os
-r requirements.txt
streamlit>=1.28
langchain>=0.0.217
openai>=1.2
duckduckgo-search
anthropic>=0.3.0
trubrics>=1.4.3
streamlit-feedback
langchain.llms.OpenAI
langchain.prompts.PromptTemplate
langchain.chains.LLMChain
langchain.memory.ConversationBufferMemory
langchain.utilities.WikipediaAPIWrapper
black==23.3.0
mypy==1.4.1
pre-commit==3.3.3
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
streamlit>=1.28
langchain>=0.0.217
openai>=1.2
duckduckgo-search>=0.0.1
duckduckgo-search
anthropic>=0.3.0
trubrics>=1.4.3

Expand Down

0 comments on commit 48e16ab

Please sign in to comment.