mgokg commited on
Commit
3b96a88
·
verified ·
1 Parent(s): 628890e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -25,10 +25,10 @@ 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=api_key)
29
 
30
  def update(message):
31
-
32
 
33
  try:
34
  # Use Llama 3 70B powered by Groq for text generation
@@ -38,8 +38,7 @@ def update(message):
38
  {"role": "system", "content": "You are a helpful assistant."},
39
  {"role": "user", "content": f"{message} antworte immer auf deutsch"}
40
  ],
41
- )
42
-
43
  return completion.choices[0].message.content
44
  except Exception as e:
45
  return f"Error in response generation: {str(e)}"
 
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(message):
31
+ client = groq.Client(api_key=api_key)
32
 
33
  try:
34
  # Use Llama 3 70B powered by Groq for text generation
 
38
  {"role": "system", "content": "You are a helpful assistant."},
39
  {"role": "user", "content": f"{message} antworte immer auf deutsch"}
40
  ],
41
+ )
 
42
  return completion.choices[0].message.content
43
  except Exception as e:
44
  return f"Error in response generation: {str(e)}"