Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import sys
|
|
3 |
import gradio as gr
|
4 |
from llama_index import GPTVectorStoreIndex, SimpleDirectoryReader, ServiceContext
|
5 |
from llama_index import OpenAIEmbedding
|
6 |
-
|
7 |
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
|
8 |
logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
|
9 |
os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
|
|
|
3 |
import gradio as gr
|
4 |
from llama_index import GPTVectorStoreIndex, SimpleDirectoryReader, ServiceContext
|
5 |
from llama_index import OpenAIEmbedding
|
6 |
+
import os
|
7 |
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
|
8 |
logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout))
|
9 |
os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
|