Abdur Rahman commited on
Commit
80a1384
β€’
1 Parent(s): 0522fa5

Updated requirements & README.md

Browse files
Files changed (4) hide show
  1. .gitignore +8 -0
  2. README.md +2 -1
  3. app.py +1 -1
  4. requirements.txt +12 -10
.gitignore ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ __pycache__/
2
+ env/
3
+ build/
4
+ *.egg-info/
5
+ *.egg
6
+ *.DS_Store
7
+ *.pth
8
+ *.jpg
README.md CHANGED
@@ -2,9 +2,10 @@
2
  title: UrduOCR UTRNet
3
  emoji: πŸ“–
4
  colorFrom: red
5
- colorTo: red
6
  sdk: gradio
7
  sdk_version: 4.16.0
 
8
  app_file: app.py
9
  pinned: false
10
  license: cc-by-nc-sa-4.0
 
2
  title: UrduOCR UTRNet
3
  emoji: πŸ“–
4
  colorFrom: red
5
+ colorTo: green
6
  sdk: gradio
7
  sdk_version: 4.16.0
8
+ python_version: 3.10.13
9
  app_file: app.py
10
  pinned: false
11
  license: cc-by-nc-sa-4.0
app.py CHANGED
@@ -59,7 +59,7 @@ iface = gr.Interface(predict,
59
  inputs=input,
60
  outputs=[output_image,output_text],
61
  title="End-to-End Urdu OCR",
62
- description="Demo Web App For UTRNet (https://github.com/abdur75648/UTRNet-High-Resolution-Urdu-Text-Recognition)",
63
  examples=examples,
64
  allow_flagging="never")
65
  iface.launch()
 
59
  inputs=input,
60
  outputs=[output_image,output_text],
61
  title="End-to-End Urdu OCR",
62
+ description="Demo Web App For UTRNet\n(https://github.com/abdur75648/UTRNet-High-Resolution-Urdu-Text-Recognition)",
63
  examples=examples,
64
  allow_flagging="never")
65
  iface.launch()
requirements.txt CHANGED
@@ -1,11 +1,13 @@
1
- torch
2
- torchvision
3
- PyArabic
4
- arabic-reshaper
5
- numpy
6
- Pillow
7
- tqdm
8
- opencv-python
9
- opencv-contrib-python
 
10
  kraken==4.3.13
11
- gradio==4.15.0
 
 
1
+ torch==2.0.1
2
+ torchvision==0.15.2
3
+ PyArabic==0.6.15
4
+ arabic-reshaper==3.0.0
5
+ six==1.16.0
6
+ numpy==1.23.5
7
+ pillow==10.2.0
8
+ tqdm==4.66.1
9
+ opencv-python==4.9.0.80
10
+ opencv-contrib-python==4.9.0.80
11
  kraken==4.3.13
12
+ gradio==4.16.0
13
+ spaces==0.22.0