JBHF commited on
Commit
033c30f
·
verified ·
1 Parent(s): 8c6842b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -295,7 +295,8 @@ retrieval_chain = create_retrieval_chain(retriever, document_chain)
295
  # import streamlit as st
296
 
297
  with st.sidebar:
298
- openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="password")
 
299
  "[Get an OpenAI API key](https://platform.openai.com/account/api-keys)"
300
  "[View the source code](https://github.com/streamlit/llm-examples/blob/main/Chatbot.py)"
301
  "[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/streamlit/llm-examples?quickstart=1)"
@@ -319,7 +320,7 @@ if prompt := st.chat_input():
319
  # print(f"Response time: {time.process_time() - start}")
320
  st.write(f"Response time: {time.process_time() - start} seconds")
321
 
322
- st.write(response["answer"])
323
 
324
 
325
  #client = OpenAI(api_key=openai_api_key)
 
295
  # import streamlit as st
296
 
297
  with st.sidebar:
298
+ # openai_api_key = st.text_input("OpenAI API Key", key="chatbot_api_key", type="password")
299
+ UserEmailAdress = st.text_input("Vul Uw email adres hier in: ", key="UserEmailAdress", type="password")
300
  "[Get an OpenAI API key](https://platform.openai.com/account/api-keys)"
301
  "[View the source code](https://github.com/streamlit/llm-examples/blob/main/Chatbot.py)"
302
  "[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/streamlit/llm-examples?quickstart=1)"
 
320
  # print(f"Response time: {time.process_time() - start}")
321
  st.write(f"Response time: {time.process_time() - start} seconds")
322
 
323
+ # st.write(response["answer"])
324
 
325
 
326
  #client = OpenAI(api_key=openai_api_key)