rbughao commited on
Commit
747633c
1 Parent(s): 3a70ad6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -3,9 +3,7 @@ import os
3
  import openai
4
  import gradio as gr
5
 
6
- ENV O_APIKey=$tokey
7
-
8
- openai.api_key = $tokey
9
 
10
  #using a folder
11
  from llama_index import VectorStoreIndex, SimpleDirectoryReader, SummaryIndex, download_loader
 
3
  import openai
4
  import gradio as gr
5
 
6
+ openai.api_key = os.environ.get('O_APIKey')
 
 
7
 
8
  #using a folder
9
  from llama_index import VectorStoreIndex, SimpleDirectoryReader, SummaryIndex, download_loader