Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -285,6 +285,18 @@ def simple_chat(message, temperature: float = 0.8, max_length: int = 4096, top_p
|
|
285 |
except json.JSONDecodeError:
|
286 |
formatted_text = buffer
|
287 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
print("---------")
|
289 |
print("Text: ")
|
290 |
print(formatted_text)
|
|
|
285 |
except json.JSONDecodeError:
|
286 |
formatted_text = buffer
|
287 |
|
288 |
+
json_example = {
|
289 |
+
"monto_total": "29.007,97",
|
290 |
+
"iva": "4.510,09",
|
291 |
+
"retenciones": "0,00"
|
292 |
+
}
|
293 |
+
|
294 |
+
ex_formatted_text = format_json_to_text(json_example)
|
295 |
+
print("---------")
|
296 |
+
print("Ejemplo: ")
|
297 |
+
print(ex_formatted_text)
|
298 |
+
print("---------")
|
299 |
+
|
300 |
print("---------")
|
301 |
print("Text: ")
|
302 |
print(formatted_text)
|