MatteoScript commited on
Commit
31ef0d5
·
verified ·
1 Parent(s): a644f61

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -78,7 +78,7 @@ def format_prompt(message, history):
78
 
79
  #--------------------------------------------------- Generazione TESTO Asincrono ------------------------------------------------------
80
  @app.post("/GeneraAsincrono")
81
- def read_root_async(request: Request, input_data: InputData):
82
  input_text = input_data.input
83
  temperature = input_data.temperature
84
  max_new_tokens = input_data.max_new_tokens
 
78
 
79
  #--------------------------------------------------- Generazione TESTO Asincrono ------------------------------------------------------
80
  @app.post("/GeneraAsincrono")
81
+ async def read_root_async(request: Request, input_data: InputData):
82
  input_text = input_data.input
83
  temperature = input_data.temperature
84
  max_new_tokens = input_data.max_new_tokens