Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -56,8 +56,8 @@ def LoggaTesto(log_type, data):
|
|
56 |
#--------------------------------------------------- Generazione TESTO ------------------------------------------------------
|
57 |
@app.post("/Genera")
|
58 |
def generate_text(request: Request, input_data: InputData):
|
59 |
-
LoggaTesto("INPUT", input_data.input)
|
60 |
if not input_data.asincrono:
|
|
|
61 |
temperature = input_data.temperature
|
62 |
max_new_tokens = input_data.max_new_tokens
|
63 |
top_p = input_data.top_p
|
|
|
56 |
#--------------------------------------------------- Generazione TESTO ------------------------------------------------------
|
57 |
@app.post("/Genera")
|
58 |
def generate_text(request: Request, input_data: InputData):
|
|
|
59 |
if not input_data.asincrono:
|
60 |
+
LoggaTesto("RICHIESTA SINCRONA", input_data)
|
61 |
temperature = input_data.temperature
|
62 |
max_new_tokens = input_data.max_new_tokens
|
63 |
top_p = input_data.top_p
|