Spaces:
Sleeping
Sleeping
minor change
Browse files
app.py
CHANGED
|
@@ -98,10 +98,10 @@ async def main():
|
|
| 98 |
|
| 99 |
if user_env:
|
| 100 |
|
| 101 |
-
await cl.Message(content=f"{user_env['output']}",).send()
|
| 102 |
-
|
| 103 |
os.environ["OPENAI_API_KEY"] = user_env['output']
|
| 104 |
|
|
|
|
|
|
|
| 105 |
model = ChatOpenAI(model="gpt-3.5-turbo")
|
| 106 |
embedding_model = OpenAIEmbeddings(model="text-embedding-3-small")
|
| 107 |
vector_store = Pinecone.from_documents(data, embedding_model, index_name="bygnings-regl-rag-1")
|
|
|
|
| 98 |
|
| 99 |
if user_env:
|
| 100 |
|
|
|
|
|
|
|
| 101 |
os.environ["OPENAI_API_KEY"] = user_env['output']
|
| 102 |
|
| 103 |
+
await cl.Message(content=f"Din api nøgle er nu tilføjet - nu kan du lave en forespørgsel!",).send()
|
| 104 |
+
|
| 105 |
model = ChatOpenAI(model="gpt-3.5-turbo")
|
| 106 |
embedding_model = OpenAIEmbeddings(model="text-embedding-3-small")
|
| 107 |
vector_store = Pinecone.from_documents(data, embedding_model, index_name="bygnings-regl-rag-1")
|