Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,7 @@ import os
|
|
3 |
import openai
|
4 |
import gradio as gr
|
5 |
|
6 |
-
|
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
|