Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import os
|
2 |
#import openai
|
3 |
import gradio as gr
|
|
|
4 |
|
5 |
#if you have OpenAI API key as an environment variable, enable the below
|
6 |
#openai.api_key = os.getenv("OPENAI_API_KEY")
|
|
|
1 |
import os
|
2 |
#import openai
|
3 |
import gradio as gr
|
4 |
+
from llama_index import SimpleDirectoryReader, GPTListIndex, readers, GPTSimpleVectorIndex, LLMPredictor, PromptHelper, ServiceContext
|
5 |
|
6 |
#if you have OpenAI API key as an environment variable, enable the below
|
7 |
#openai.api_key = os.getenv("OPENAI_API_KEY")
|