Spaces:
Sleeping
Sleeping
Update app.py
Browse files377 unmodified lines378379380381382383384385386387377 unmodified linesst.error(st.session_state.error)if st.session_state.success != None:st.success("Success! The qequirements.txt and app.py files are at the bottom of the page")st.write("1. Open a new HuggingFace Space for the chatbot")image = Image.open('Example15.png')st.image(image, caption="Example for Step 10",use_column_width=True)st.divider()377 unmodified lines378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432377 unmodified linesst.error(st.session_state.error)if st.session_state.success != None:st.success("Success! The requirements.txt and app.py files are at the bottom of the page")st.write("1. Open a new HuggingFace Space for the chatbot")image = Image.open('Example16.png')st.image(image, caption="Example for Step 2",use_column_width=True)st.divider()st.write("2. Name the space, select the mit liscene, choose streamlit, and click 'Create Space'")image = Image.open('Example17.png')st.image(image, caption="Example for Step 2",use_column_width=True)st.divider()st.write("3. Go to 'Files' at the top, and click 'Add file' --> 'Create a new file'")image = Image.open('Example18.png')st.image(image, caption="Example for Step 3",use_column_width=True)st.divider()st.write("4. Name the file 'requirements.txt', copy-paste from the code below, and 'Commit changes to main'")image = Image.open('Example19.png')st.image(image, caption="Example for Step 4",use_column_width=True)st.divider()st.write("5. Go back to 'Files' at the top, and click 'Add file' --> 'Create a new file'")image = Image.open('Example18.png')st.image(image, caption="Example for Step 5",use_column_width=True)st.divider()st.write("6. Name the file 'app.py', copy-paste from the code below, and 'Commit changes to main'")image = Image.open('Example20.png')st.image(image, caption="Example for Step 6",use_column_width=True)st.divider()st.write("7. At the top, select 'Settings'")image = Image.open('Example21.png')st.image(image, caption="Example for Step 7",use_column_width=True)st.divider()st.write("8. Scroll down to create 'New secret'")image = Image.open('Example22.png')st.image(image, caption="Example for Step 8",use_column_width=True)st.divider()st.write("9. Name it 'OpenAI_API_KEY', put your key in for the value, and 'Save'")image = Image.open('Example23.png')st.image(image, caption="Example for Step 6",use_column_width=True)st.divider()st.write("10. Return to app at the top and there you have it!")image = Image.open('Example24.png')st.image(image, caption="Example for Step 10",use_column_width=True)st.divider()
app.py+47-2