Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -364,8 +364,8 @@ def generate(
|
|
| 364 |
resp += response.token.text
|
| 365 |
|
| 366 |
if VERBOSE:
|
| 367 |
-
logging.info(LOG_RESPONSE.format(
|
| 368 |
-
return
|
| 369 |
|
| 370 |
def generate_text_chunked(input_text, model, generation_parameters, max_tokens_to_generate):
|
| 371 |
"""Generates text in chunks to avoid token limit errors."""
|
|
|
|
| 364 |
resp += response.token.text
|
| 365 |
|
| 366 |
if VERBOSE:
|
| 367 |
+
logging.info(LOG_RESPONSE.format("")) # Log the response
|
| 368 |
+
return formatted_prompt # Return resp here
|
| 369 |
|
| 370 |
def generate_text_chunked(input_text, model, generation_parameters, max_tokens_to_generate):
|
| 371 |
"""Generates text in chunks to avoid token limit errors."""
|