I’ve created very basic code following along with this tutorial here. The page in the browser is blank (see image) when running ‘streamlit run app.py’.
Does it works if you don’t use the apikey library (it’s kind of outdated), for example like this:
import os
import streamlit as st
from langchain.llms import OpenAI
os.environ['OPENAI_API_KEY'] = 'YOUR_API_KEY'
st.title('YouTube GPT Creator')
prompt = st.text_input('Plug in your prompt here')
You have not installed the apikey python package that’s why you initial code was not working. If you don’t want to use apikey (which I recommend), you need to remove the apikey import statement from your code.