Spaces:
Sleeping
Sleeping
Update main.py
Browse files74 unmodified lines75767778798081828374 unmodified linesmax_new_tokens = min(max_new_tokens, 29500 - len(input_text))history = []generated_response = generate(input_text, history, temperature, max_new_tokens, top_p, repetition_penalty)RispostaJSON = NormalizzaJSON(generated_response)LoggaTesto("RISPOSTA", RispostaJSON)return RispostaJSONelse:input_data.asincrono = Falseif input_data.EliminaRisposteNonPertinenti:74 unmodified lines75767778798081828374 unmodified linesmax_new_tokens = min(max_new_tokens, 29500 - len(input_text))history = []generated_response = generate(input_text, history, temperature, max_new_tokens, top_p, repetition_penalty)#RispostaJSON = NormalizzaJSON(generated_response)LoggaTesto("RISPOSTA", {"response": json.dumps(generated_response)})return {"response": json.dumps(generated_response)}else:input_data.asincrono = Falseif input_data.EliminaRisposteNonPertinenti:
main.py+3-3