Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,9 @@ from chromadb.config import DEFAULT_DATABASE, DEFAULT_TENANT
|
|
7 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
8 |
import os
|
9 |
import speech_recognition as sr
|
10 |
-
|
11 |
import pyttsx3
|
12 |
-
|
13 |
# Initialisiere ChromaDB
|
14 |
client_chroma = chromadb.Client()
|
15 |
#client_croma = chromadb.PersistentClient(path="/")
|
@@ -25,7 +25,7 @@ custom_css = """
|
|
25 |
# Verwende die integrierten Embeddings von ChromaDB
|
26 |
embedding_function = embedding_functions.DefaultEmbeddingFunction()
|
27 |
#client = Client("Qwen/Qwen2.5-72B-Instruct")
|
28 |
-
client = groq.Client(api_key=
|
29 |
|
30 |
def update(json):
|
31 |
try:
|
|
|
7 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
8 |
import os
|
9 |
import speech_recognition as sr
|
10 |
+
import groq
|
11 |
import pyttsx3
|
12 |
+
api_key = os.getenv('groq')
|
13 |
# Initialisiere ChromaDB
|
14 |
client_chroma = chromadb.Client()
|
15 |
#client_croma = chromadb.PersistentClient(path="/")
|
|
|
25 |
# Verwende die integrierten Embeddings von ChromaDB
|
26 |
embedding_function = embedding_functions.DefaultEmbeddingFunction()
|
27 |
#client = Client("Qwen/Qwen2.5-72B-Instruct")
|
28 |
+
client = groq.Client(api_key=api_key)
|
29 |
|
30 |
def update(json):
|
31 |
try:
|