redfernstech commited on
Commit
00607ed
·
verified ·
1 Parent(s): 20198dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -27,7 +27,7 @@ llm_client = InferenceClient(
27
  model=repo_id,
28
  token=os.getenv("HF_TOKEN"),
29
  )
30
- client = Client("llamameta/Qwen2.5-Coder-32B-Instruct-Chat-Assistant")
31
  os.environ["HF_TOKEN"] = os.getenv("HF_TOKEN")
32
  username = os.getenv("username")
33
  password = os.getenv("password")
@@ -173,10 +173,7 @@ async def save_chat_history(history: dict):
173
  print(hist)
174
 
175
  # Get the summarized result from the client model
176
- result = client.predict(
177
- message=hist,
178
- api_name="/chat"
179
- )
180
 
181
  try:
182
  sf.Lead.update(user_id, {'Description': result})
 
27
  model=repo_id,
28
  token=os.getenv("HF_TOKEN"),
29
  )
30
+
31
  os.environ["HF_TOKEN"] = os.getenv("HF_TOKEN")
32
  username = os.getenv("username")
33
  password = os.getenv("password")
 
173
  print(hist)
174
 
175
  # Get the summarized result from the client model
176
+ result = hist
 
 
 
177
 
178
  try:
179
  sf.Lead.update(user_id, {'Description': result})