Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,8 @@ tokenizer = T5Tokenizer.from_pretrained("AfnanAl/mT5small-ArabicSummary")
|
|
| 18 |
|
| 19 |
#model_name="AfnanAl/mT5small-ArabicSummary"
|
| 20 |
#custom_output_path="AfnanAl/summaryAonnx"
|
| 21 |
-
modelO=
|
|
|
|
| 22 |
modelO.config.max_length=512
|
| 23 |
def summaryA(Text):
|
| 24 |
tokenized_text = tokenizer.encode(Text,return_tensors="pt")
|
|
|
|
| 18 |
|
| 19 |
#model_name="AfnanAl/mT5small-ArabicSummary"
|
| 20 |
#custom_output_path="AfnanAl/summaryAonnx"
|
| 21 |
+
modelO = quantize("AfnanAl/summaryAonnx")
|
| 22 |
+
#modelO=get_onnx_model(model_name, custom_output_path)
|
| 23 |
modelO.config.max_length=512
|
| 24 |
def summaryA(Text):
|
| 25 |
tokenized_text = tokenizer.encode(Text,return_tensors="pt")
|