Spaces:
Runtime error
Runtime error
update the chatbot
Browse files
app.py
CHANGED
@@ -8,8 +8,9 @@ from llama_index.llms.openai import OpenAI
|
|
8 |
from llama_index.embeddings.openai import OpenAIEmbedding
|
9 |
from llama_index.core.postprocessor import MetadataReplacementPostProcessor
|
10 |
from llama_index.core.node_parser import SentenceWindowNodeParser
|
11 |
-
|
12 |
from dotenv import load_dotenv
|
|
|
|
|
13 |
load_dotenv("config.env")
|
14 |
|
15 |
# Set your OpenAI API key here
|
@@ -145,4 +146,4 @@ iface = gr.ChatInterface(
|
|
145 |
)
|
146 |
|
147 |
# Launch the interface
|
148 |
-
iface.launch(share=True)
|
|
|
8 |
from llama_index.embeddings.openai import OpenAIEmbedding
|
9 |
from llama_index.core.postprocessor import MetadataReplacementPostProcessor
|
10 |
from llama_index.core.node_parser import SentenceWindowNodeParser
|
|
|
11 |
from dotenv import load_dotenv
|
12 |
+
|
13 |
+
# Load environment variables
|
14 |
load_dotenv("config.env")
|
15 |
|
16 |
# Set your OpenAI API key here
|
|
|
146 |
)
|
147 |
|
148 |
# Launch the interface
|
149 |
+
iface.launch(share=True)
|