navhira commited on
Commit
8c08288
Β·
1 Parent(s): c7e880a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,9 +1,11 @@
 
 
1
  import streamlit as st
2
  from langchain.llms import OpenAI
3
 
4
  st.title('πŸ¦œπŸ”— Quickstart App')
5
 
6
- openai_api_key = st.sidebar.text_input('OpenAI API Key')
7
 
8
  def generate_response(input_text):
9
  llm = OpenAI(temperature=0.7, openai_api_key=openai_api_key)
 
1
+ pip install streamlit openai langchain
2
+
3
  import streamlit as st
4
  from langchain.llms import OpenAI
5
 
6
  st.title('πŸ¦œπŸ”— Quickstart App')
7
 
8
+ openai_api_key = st.sidebar.text_input('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')
9
 
10
  def generate_response(input_text):
11
  llm = OpenAI(temperature=0.7, openai_api_key=openai_api_key)