Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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
|
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")
|