Spaces:
Runtime error
Runtime error
added postprocess_output
Browse files
app.py
CHANGED
|
@@ -10,6 +10,9 @@ def preprocess_infer_input(text):
|
|
| 10 |
# Assuming the input is already a string, we don't need to access it as a dictionary
|
| 11 |
return f"latex: {text}"
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
def clean_generated_code(generated_code):
|
| 14 |
# Remove unwanted parts
|
| 15 |
print(':::generated_code::::', generated_code)
|
|
|
|
| 10 |
# Assuming the input is already a string, we don't need to access it as a dictionary
|
| 11 |
return f"latex: {text}"
|
| 12 |
|
| 13 |
+
def postprocess_output(text):
|
| 14 |
+
return text.replace('<newline>', '\n')
|
| 15 |
+
|
| 16 |
def clean_generated_code(generated_code):
|
| 17 |
# Remove unwanted parts
|
| 18 |
print(':::generated_code::::', generated_code)
|