Spaces:
Runtime error
Runtime error
Nullzero
commited on
Commit
·
aaff33c
1
Parent(s):
2ab7bbf
added notes
Browse files
app.py
CHANGED
|
@@ -44,9 +44,9 @@ def load_chain(api_key):
|
|
| 44 |
|
| 45 |
# From here down is all the StreamLit UI.
|
| 46 |
st.set_page_config(page_title="Python Project Generator", page_icon=":robot:")
|
| 47 |
-
st.header("Python
|
| 48 |
|
| 49 |
-
st.write("Enter your API key below:")
|
| 50 |
openai_api_key = st.text_input("openai_api_key")
|
| 51 |
|
| 52 |
if "generated" not in st.session_state:
|
|
@@ -57,7 +57,7 @@ if "past" not in st.session_state:
|
|
| 57 |
|
| 58 |
|
| 59 |
def get_text():
|
| 60 |
-
user_input = st.text_input("Please describe your python
|
| 61 |
return user_input
|
| 62 |
|
| 63 |
|
|
|
|
| 44 |
|
| 45 |
# From here down is all the StreamLit UI.
|
| 46 |
st.set_page_config(page_title="Python Project Generator", page_icon=":robot:")
|
| 47 |
+
st.header("Python Snippet Generator")
|
| 48 |
|
| 49 |
+
st.write("Enter your OpenAI API key below (not stored between sessions):")
|
| 50 |
openai_api_key = st.text_input("openai_api_key")
|
| 51 |
|
| 52 |
if "generated" not in st.session_state:
|
|
|
|
| 57 |
|
| 58 |
|
| 59 |
def get_text():
|
| 60 |
+
user_input = st.text_input("Please describe your desired python code in 1-2 sentences", key="input")
|
| 61 |
return user_input
|
| 62 |
|
| 63 |
|