Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ custom_output_path="summaryAonnx/"
|
|
| 23 |
|
| 24 |
#print(quantized_model)
|
| 25 |
#modelO = quantize("AfnanAl/summaryAonnx")
|
| 26 |
-
modelO=get_onnx_model(model_name, custom_output_path)
|
| 27 |
modelO.config.max_length=512
|
| 28 |
def summaryA(Text):
|
| 29 |
tokenized_text = tokenizer.encode(Text,return_tensors="pt")
|
|
|
|
| 23 |
|
| 24 |
#print(quantized_model)
|
| 25 |
#modelO = quantize("AfnanAl/summaryAonnx")
|
| 26 |
+
modelO=get_onnx_model(model_name, custom_output_path,quantized=False)
|
| 27 |
modelO.config.max_length=512
|
| 28 |
def summaryA(Text):
|
| 29 |
tokenized_text = tokenizer.encode(Text,return_tensors="pt")
|