Spaces:
Runtime error
Runtime error
Update the progress bar's increment
Browse files82 unmodified lines83848586878889115 unmodified lines20520620720820921021182 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 / 2logger = logging.getLogger(__name__)115 unmodified linesresponse += chunk# Update the progress barprogress_percentage = min(len(response) / APPROX_TARGET_LENGTH, 0.95)progress_bar.progress(progress_percentage,text='Streaming content...this might take a while...'82 unmodified lines838485868788115 unmodified lines20420520620720820921021121282 unmodified linesCHAT_MESSAGES = 'chat_messages'DOWNLOAD_FILE_KEY = 'download_file_name'IS_IT_REFINEMENT = 'is_it_refinement'logger = logging.getLogger(__name__)115 unmodified linesresponse += chunk# Update the progress barprogress_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