Spaces:
Runtime error
Runtime error
Akhil Ahuja commited on
Commit ·
7ab06a5
1
Parent(s): fea808c
Model path correction in app.py
Browse files
app.py
CHANGED
|
@@ -8,8 +8,8 @@ import gradio as gr
|
|
| 8 |
|
| 9 |
tsr.pytesseract.tesseract_cmd = r'/opt/homebrew/Cellar/tesseract/5.2.0/bin/tesseract'
|
| 10 |
|
| 11 |
-
model = M2M100ForConditionalGeneration.from_pretrained("
|
| 12 |
-
tokenizer = M2M100Tokenizer.from_pretrained("
|
| 13 |
|
| 14 |
def extractAndTranslate(image):
|
| 15 |
# Extract Text
|
|
|
|
| 8 |
|
| 9 |
tsr.pytesseract.tesseract_cmd = r'/opt/homebrew/Cellar/tesseract/5.2.0/bin/tesseract'
|
| 10 |
|
| 11 |
+
model = M2M100ForConditionalGeneration.from_pretrained("facebook/m2m100_418M")
|
| 12 |
+
tokenizer = M2M100Tokenizer.from_pretrained("facebook/m2m100_418M")
|
| 13 |
|
| 14 |
def extractAndTranslate(image):
|
| 15 |
# Extract Text
|