Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
4 |
def inference(filepath):
|
5 |
return os.popen(f'tesseract {filepath} -').read().strip()
|
6 |
|
@@ -17,5 +19,3 @@ gr.Interface(
|
|
17 |
examples=['eurotext.png']
|
18 |
).launch(enable_queue=True,cache_examples=True)
|
19 |
|
20 |
-
|
21 |
-
print(os.popen(f'apt search tesseract').read())
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
|
4 |
+
print(os.popen(f'apt search tesseract').read())
|
5 |
+
|
6 |
def inference(filepath):
|
7 |
return os.popen(f'tesseract {filepath} -').read().strip()
|
8 |
|
|
|
19 |
examples=['eurotext.png']
|
20 |
).launch(enable_queue=True,cache_examples=True)
|
21 |
|
|
|
|