Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -63,7 +63,7 @@ def LoggaTesto(log_type, data, serializza=True):
|
|
63 |
|
64 |
#--------------------------------------------------- Generazione TESTO ------------------------------------------------------
|
65 |
@app.post("/Genera")
|
66 |
-
|
67 |
if not input_data.asincrono:
|
68 |
LoggaTesto("INPUT", input_data.input, False)
|
69 |
temperature = input_data.temperature
|
|
|
63 |
|
64 |
#--------------------------------------------------- Generazione TESTO ------------------------------------------------------
|
65 |
@app.post("/Genera")
|
66 |
+
def generate_text(request: Request, input_data: InputData):
|
67 |
if not input_data.asincrono:
|
68 |
LoggaTesto("INPUT", input_data.input, False)
|
69 |
temperature = input_data.temperature
|