ysharma HF staff commited on
Commit
b1481c5
1 Parent(s): 8cf9f0f
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ def translate_image(im, language):
131
  #Extract text, translate in your language and format it
132
  extracted_text = text_extract(im)
133
  #font select -- Getting Unicode Text
134
- title_font = ImageFont.truetype('./arial-unicode-ms.ttf') #('/content/gdrive/My Drive/sample_images/arial-unicode-ms.ttf',30)
135
  #text to write on image #Example in hindi - Unicode text u"आप जीवन में मिलता हर मौका ले लो, क्योंकि कुछ चीजें केवल एक बार होती हैं. शुभ सुबह"
136
  txt = format_text(language,extracted_text)
137
 
 
131
  #Extract text, translate in your language and format it
132
  extracted_text = text_extract(im)
133
  #font select -- Getting Unicode Text
134
+ title_font = ImageFont.truetype('./arial-unicode-ms.ttf',30) #('/content/gdrive/My Drive/sample_images/arial-unicode-ms.ttf',30)
135
  #text to write on image #Example in hindi - Unicode text u"आप जीवन में मिलता हर मौका ले लो, क्योंकि कुछ चीजें केवल एक बार होती हैं. शुभ सुबह"
136
  txt = format_text(language,extracted_text)
137