Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ path = "Hyeonsieun/NTtoGT_1epoch"
|
|
| 17 |
tokenizer = T5Tokenizer.from_pretrained(path)
|
| 18 |
model = T5ForConditionalGeneration.from_pretrained(path)
|
| 19 |
|
| 20 |
-
def do_correction(text
|
| 21 |
input_text = f"translate the text pronouncing the formula to a LaTeX equation: {text}"
|
| 22 |
inputs = tokenizer.encode(
|
| 23 |
input_text,
|
|
|
|
| 17 |
tokenizer = T5Tokenizer.from_pretrained(path)
|
| 18 |
model = T5ForConditionalGeneration.from_pretrained(path)
|
| 19 |
|
| 20 |
+
def do_correction(text):
|
| 21 |
input_text = f"translate the text pronouncing the formula to a LaTeX equation: {text}"
|
| 22 |
inputs = tokenizer.encode(
|
| 23 |
input_text,
|