Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -84,7 +84,10 @@ def generate_text(request: Request, input_data: InputData):
|
|
| 84 |
if input_data.EliminaRisposteNonPertinenti:
|
| 85 |
result_data = [item for item in result_data if "NOTFOUND" not in item["response"]]
|
| 86 |
if input_data.UnificaRispostaPertinente:
|
| 87 |
-
input_data.
|
|
|
|
|
|
|
|
|
|
| 88 |
result_data = asyncio.run(GeneraTestoAsync("https://matteoscript-fastapi.hf.space/Genera", input_data))
|
| 89 |
return {"response": result_data}
|
| 90 |
|
|
|
|
| 84 |
if input_data.EliminaRisposteNonPertinenti:
|
| 85 |
result_data = [item for item in result_data if "NOTFOUND" not in item["response"]]
|
| 86 |
if input_data.UnificaRispostaPertinente:
|
| 87 |
+
input_data.input= f'''Metti insieme le seguenti risposte: {result_data}'''
|
| 88 |
+
input_data.systemRole = ''
|
| 89 |
+
input_data.systemStyle = 'Rispondi in ITALIANO'
|
| 90 |
+
input_data.instruction =''
|
| 91 |
result_data = asyncio.run(GeneraTestoAsync("https://matteoscript-fastapi.hf.space/Genera", input_data))
|
| 92 |
return {"response": result_data}
|
| 93 |
|