Spaces:
Runtime error
Runtime error
Update the progress bar's increment
Browse files82 unmodified lines83848586868788115 unmodified lines20420520620820720820921021121282 unmodified linesCHAT_MESSAGES = 'chat_messages'DOWNLOAD_FILE_KEY = 'download_file_name'IS_IT_REFINEMENT = 'is_it_refinement'APPROX_TARGET_LENGTH = GlobalConfig.LLM_MODEL_MAX_OUTPUT_LENGTH / 2
logger = logging.getLogger(__name__)115 unmodified lines response += chunk
# Update the progress bar progress_percentage = min(len(response) / APPROX_TARGET_LENGTH, 0.95) progress_percentage = min( len(response) / GlobalConfig.LLM_MODEL_MAX_OUTPUT_LENGTH, 0.95 ) progress_bar.progress( progress_percentage, text='Streaming content...this might take a while...'app.py+3-2