Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,6 @@ def demo_process(input_img):
|
|
16 |
output = pretrained_model.inference(image=input_img, prompt=task_prompt)["predictions"][0]
|
17 |
return output["text_sequence"].replace(" ", "") # temp
|
18 |
|
19 |
-
|
20 |
task_prompt = f"<s_kuzushiji>"
|
21 |
pretrained_model = DonutModel.from_pretrained("naver-clova-ix/donut-base-finetuned-kuzushiji")
|
22 |
pretrained_model.eval()
|
|
|
16 |
output = pretrained_model.inference(image=input_img, prompt=task_prompt)["predictions"][0]
|
17 |
return output["text_sequence"].replace(" ", "") # temp
|
18 |
|
|
|
19 |
task_prompt = f"<s_kuzushiji>"
|
20 |
pretrained_model = DonutModel.from_pretrained("naver-clova-ix/donut-base-finetuned-kuzushiji")
|
21 |
pretrained_model.eval()
|