Update app.py
Browse files58 unmodified lines596061626364656667686958 unmodified lines"temperature": temperature,"top_p": top_p,"repetition_penalty": repetition_penalty,"max_length": 2000},huggingfacehub_api_token=huggingface_token)def generate_chunked_response(model, prompt, max_tokens=2000, max_chunks=5):full_response = ""for i in range(max_chunks):chunk = model(prompt + full_response, max_new_tokens=max_tokens)58 unmodified lines596061626364656667686958 unmodified lines"temperature": temperature,"top_p": top_p,"repetition_penalty": repetition_penalty,"max_length": 1000},huggingfacehub_api_token=huggingface_token)def generate_chunked_response(model, prompt, max_tokens=1000, max_chunks=5):full_response = ""for i in range(max_chunks):chunk = model(prompt + full_response, max_new_tokens=max_tokens)
app.py+2-2