Spaces:
Runtime error
Runtime error
model name changed
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ from transformers import T5ForConditionalGeneration, RobertaTokenizer
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
# Load the quantized model and tokenizer from Hugging Face Hub
|
| 6 |
-
quantized_model = T5ForConditionalGeneration.from_pretrained("AbdulHadi806/
|
| 7 |
-
tokenizer = RobertaTokenizer.from_pretrained("AbdulHadi806/
|
| 8 |
|
| 9 |
def preprocess_infer_input(text):
|
| 10 |
# Assuming the input is already a string, we don't need to access it as a dictionary
|
|
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
# Load the quantized model and tokenizer from Hugging Face Hub
|
| 6 |
+
quantized_model = T5ForConditionalGeneration.from_pretrained("AbdulHadi806/codeT5-finetuned-LaTexToPythonCode-30kDataset")
|
| 7 |
+
tokenizer = RobertaTokenizer.from_pretrained("AbdulHadi806/codeT5-finetuned-LaTexToPythonCode-30kDataset")
|
| 8 |
|
| 9 |
def preprocess_infer_input(text):
|
| 10 |
# Assuming the input is already a string, we don't need to access it as a dictionary
|