seawolf2357
commited on
Commit
•
d8da966
1
Parent(s):
951f374
Update app.py
Browse files
app.py
CHANGED
@@ -148,7 +148,7 @@ async def generate_replies(comments, transcript):
|
|
148 |
]
|
149 |
loop = asyncio.get_event_loop()
|
150 |
response = await loop.run_in_executor(None, lambda: hf_client.chat_completion(
|
151 |
-
messages, max_tokens=
|
152 |
|
153 |
if response.choices and response.choices[0].message:
|
154 |
reply = response.choices[0].message['content'].strip()
|
|
|
148 |
]
|
149 |
loop = asyncio.get_event_loop()
|
150 |
response = await loop.run_in_executor(None, lambda: hf_client.chat_completion(
|
151 |
+
messages, max_tokens=500, temperature=0.7, top_p=0.85))
|
152 |
|
153 |
if response.choices and response.choices[0].message:
|
154 |
reply = response.choices[0].message['content'].strip()
|