Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,12 +24,10 @@ custom_css = """
|
|
24 |
|
25 |
# Verwende die integrierten Embeddings von ChromaDB
|
26 |
embedding_function = embedding_functions.DefaultEmbeddingFunction()
|
27 |
-
client = Client("Qwen/Qwen2.5-72B-Instruct")
|
|
|
28 |
|
29 |
-
def update(json):
|
30 |
-
|
31 |
-
client = groq.Client(api_key=f"{groq}")
|
32 |
-
|
33 |
try:
|
34 |
# Use Llama 3 70B powered by Groq for text generation
|
35 |
completion = client.chat.completions.create(
|
@@ -59,7 +57,7 @@ def transcribe_audio(audio):
|
|
59 |
try:
|
60 |
text = recognizer.recognize_google(audio_data, language="de-DE")
|
61 |
result = update(text)
|
62 |
-
|
63 |
result = client.predict(
|
64 |
query=text,
|
65 |
history=[],
|
|
|
24 |
|
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=f"{groq}")
|
29 |
|
30 |
+
def update(json):
|
|
|
|
|
|
|
31 |
try:
|
32 |
# Use Llama 3 70B powered by Groq for text generation
|
33 |
completion = client.chat.completions.create(
|
|
|
57 |
try:
|
58 |
text = recognizer.recognize_google(audio_data, language="de-DE")
|
59 |
result = update(text)
|
60 |
+
return result
|
61 |
result = client.predict(
|
62 |
query=text,
|
63 |
history=[],
|