Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -78,7 +78,7 @@ def format_prompt(message, history):
|
|
| 78 |
|
| 79 |
#--------------------------------------------------- Generazione TESTO Asincrono ------------------------------------------------------
|
| 80 |
@app.post("/GeneraAsincrono")
|
| 81 |
-
def read_root_async(request: Request, input_data: InputData):
|
| 82 |
input_text = input_data.input
|
| 83 |
temperature = input_data.temperature
|
| 84 |
max_new_tokens = input_data.max_new_tokens
|
|
|
|
| 78 |
|
| 79 |
#--------------------------------------------------- Generazione TESTO Asincrono ------------------------------------------------------
|
| 80 |
@app.post("/GeneraAsincrono")
|
| 81 |
+
async def read_root_async(request: Request, input_data: InputData):
|
| 82 |
input_text = input_data.input
|
| 83 |
temperature = input_data.temperature
|
| 84 |
max_new_tokens = input_data.max_new_tokens
|