MatteoScript commited on
Commit
5bd4722
·
verified ·
1 Parent(s): 5d649f5

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -59,8 +59,8 @@ def LoggaTesto(log_type, data, serializza=True):
59
  print(f"\n{datetime.now()}: ---------------------------------------------------------------| {log_type} |--------------------------------------------------------------\n{formatted_data}")
60
 
61
  def NormalizzaJSON(stringa):
62
- json_result = json.dumps(stringa)
63
- return {"response": json_result}
64
 
65
  #--------------------------------------------------- Generazione TESTO ------------------------------------------------------
66
  @app.post("/Genera")
 
59
  print(f"\n{datetime.now()}: ---------------------------------------------------------------| {log_type} |--------------------------------------------------------------\n{formatted_data}")
60
 
61
  def NormalizzaJSON(stringa):
62
+ json_result = json.dumps({"response": stringa})
63
+ return json_result
64
 
65
  #--------------------------------------------------- Generazione TESTO ------------------------------------------------------
66
  @app.post("/Genera")