Spaces:
Build error
Build error
Update main.py
Browse files56 unmodified lines57585960616263646566676856 unmodified lines@app.post("/Genera")def generate_text(request: Request, input_data: InputData):if not input_data.asincrono:LoggaTesto("RICHIESTA SINCRONA", input_data)temperature = input_data.temperaturemax_new_tokens = input_data.max_new_tokenstop_p = input_data.top_prepetition_penalty = input_data.repetition_penaltyinput_text = generate_input_text(input_data)max_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)56 unmodified lines57585960616263646566676856 unmodified lines@app.post("/Genera")def generate_text(request: Request, input_data: InputData):if not input_data.asincrono:temperature = input_data.temperaturemax_new_tokens = input_data.max_new_tokenstop_p = input_data.top_prepetition_penalty = input_data.repetition_penaltyinput_text = generate_input_text(input_data)LoggaTesto("RICHIESTA SINCRONA", input_text)max_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)
main.py+1-1