Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def run_ocr(image):
|
|
17 |
generated_ids = model.generate(pixel_values, max_new_tokens=50)
|
18 |
generated_text = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
|
19 |
return generated_text
|
20 |
-
|
21 |
|
22 |
demo = gr.Interface(fn=run_ocr, inputs="image", outputs="text", title=title, description=description, examples=examples)
|
23 |
demo.launch()
|
|
|
17 |
generated_ids = model.generate(pixel_values, max_new_tokens=50)
|
18 |
generated_text = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
|
19 |
return generated_text
|
20 |
+
|
21 |
|
22 |
demo = gr.Interface(fn=run_ocr, inputs="image", outputs="text", title=title, description=description, examples=examples)
|
23 |
demo.launch()
|