WildKratts commited on
Commit
cf36f4a
·
1 Parent(s): 35101e1

openai API key from streamlit fixed

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -34,6 +34,8 @@ open_api_key = st.sidebar.text_input(
34
  st.session_state['open_api_key'] = open_api_key
35
  #load_dotenv(find_dotenv())
36
 
 
 
37
  #Function to download the audio from a youtube video
38
  def download_audio(url, output_file):
39
  ydl_opts = {
 
34
  st.session_state['open_api_key'] = open_api_key
35
  #load_dotenv(find_dotenv())
36
 
37
+ openai.api_key = open_api_key
38
+
39
  #Function to download the audio from a youtube video
40
  def download_audio(url, output_file):
41
  ydl_opts = {