Spaces:
Running
on
T4
Running
on
T4
ffreemt
commited on
Commit
·
6afaebf
1
Parent(s):
187485d
Update
Browse files
app.py
CHANGED
@@ -185,8 +185,8 @@ def bot_stream(chat_history, **kwargs):
|
|
185 |
chat_history[-1] = [message, elm]
|
186 |
response = elm
|
187 |
yield chat_history
|
188 |
-
logger.debug(f"{model.generation_config=}")
|
189 |
logger.debug(f"{response=}")
|
|
|
190 |
|
191 |
|
192 |
SYSTEM_PROMPT = "You are a helpful assistant."
|
@@ -266,8 +266,8 @@ def api_fn( # pylint: disable=too-many-arguments
|
|
266 |
logger.error(f"{exc=}")
|
267 |
res = str(exc)
|
268 |
|
269 |
-
logger.debug(f"api {model.generation_config=}")
|
270 |
logger.debug(f"api {res=}")
|
|
|
271 |
|
272 |
return res
|
273 |
|
|
|
185 |
chat_history[-1] = [message, elm]
|
186 |
response = elm
|
187 |
yield chat_history
|
|
|
188 |
logger.debug(f"{response=}")
|
189 |
+
logger.debug(f"{model.generation_config=}")
|
190 |
|
191 |
|
192 |
SYSTEM_PROMPT = "You are a helpful assistant."
|
|
|
266 |
logger.error(f"{exc=}")
|
267 |
res = str(exc)
|
268 |
|
|
|
269 |
logger.debug(f"api {res=}")
|
270 |
+
logger.debug(f"api {model.generation_config=}")
|
271 |
|
272 |
return res
|
273 |
|