Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -76,7 +76,7 @@ def generate_text(request: Request, input_data: InputData):
|
|
| 76 |
history = []
|
| 77 |
generated_response = generate(input_text, history, temperature, max_new_tokens, top_p, repetition_penalty)
|
| 78 |
RispostaJSON = NormalizzaJSON(generated_response)
|
| 79 |
-
LoggaTesto("RISPOSTA", RispostaJSON
|
| 80 |
return RispostaJSON
|
| 81 |
else:
|
| 82 |
input_data.asincrono = False
|
|
|
|
| 76 |
history = []
|
| 77 |
generated_response = generate(input_text, history, temperature, max_new_tokens, top_p, repetition_penalty)
|
| 78 |
RispostaJSON = NormalizzaJSON(generated_response)
|
| 79 |
+
LoggaTesto("RISPOSTA", RispostaJSON)
|
| 80 |
return RispostaJSON
|
| 81 |
else:
|
| 82 |
input_data.asincrono = False
|