Spaces:
Runtime error
Runtime error
nyonyong
commited on
Commit
·
cff83ad
1
Parent(s):
7fec505
Directory fix
Browse files
app.py
CHANGED
|
@@ -3,7 +3,12 @@ import subprocess
|
|
| 3 |
import torch
|
| 4 |
import directories as Dir
|
| 5 |
import process as ps
|
|
|
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
#torch.hub.download_url_to_file('https://huggingface.co/spaces/Nebulae000/NoteCrawling/blob/main/noteimg2.jpg', 'noteimg2.jpg')
|
| 8 |
|
| 9 |
def HCR(im):
|
|
@@ -21,7 +26,7 @@ description = "[Postech X KITA] Elite Undergradute AI Strategy Program | AI Proj
|
|
| 21 |
article = "<p style='text-align: center'> Handwritten Text Character Recognition Task \n" \
|
| 22 |
"Text Detection + Text Rearrangement + Text Recognition\n" \
|
| 23 |
"For More Information\n" \
|
| 24 |
-
"<a href='
|
| 25 |
|
| 26 |
#<a href='https://github.com/bandalcom/Postech+KITA_AI-Project'>Source code</a>
|
| 27 |
#examples = [['zidane.jpg'], ['bus.jpg']]
|
|
|
|
| 3 |
import torch
|
| 4 |
import directories as Dir
|
| 5 |
import process as ps
|
| 6 |
+
import urllib
|
| 7 |
|
| 8 |
+
gitblog = ["https://bandalcom.github.io/"]
|
| 9 |
+
gitblogURL = urllib.quote(gitblog.encode('utf8'), ':/')
|
| 10 |
+
github = ["https://github.com/bandalcom/Postech-KITA_AI-Project"]
|
| 11 |
+
githubURL = urllib.quote(github.encode('utf8'), ':/')
|
| 12 |
#torch.hub.download_url_to_file('https://huggingface.co/spaces/Nebulae000/NoteCrawling/blob/main/noteimg2.jpg', 'noteimg2.jpg')
|
| 13 |
|
| 14 |
def HCR(im):
|
|
|
|
| 26 |
article = "<p style='text-align: center'> Handwritten Text Character Recognition Task \n" \
|
| 27 |
"Text Detection + Text Rearrangement + Text Recognition\n" \
|
| 28 |
"For More Information\n" \
|
| 29 |
+
"<a href='"+ gitblogURL +"'>GitBlog</a> | <a href='"+ githubURL +"'>Source code</a></p>"
|
| 30 |
|
| 31 |
#<a href='https://github.com/bandalcom/Postech+KITA_AI-Project'>Source code</a>
|
| 32 |
#examples = [['zidane.jpg'], ['bus.jpg']]
|