Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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('
|
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)
|