Spaces:
Running
Running
redfernstech
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ llm_client = InferenceClient(
|
|
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,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 =
|
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})
|