nyonyong commited on
Commit
7c8b66e
1 Parent(s): 9c8674f

Directory fix

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,9 +5,9 @@ import directories as Dir
5
  import process as ps
6
  import urllib
7
 
8
- gitblog = ["https://bandalcom.github.io/"]
9
  gitblogURL = urllib.parse(gitblog.encode('utf8'), ':/')
10
- github = ["https://github.com/bandalcom/Postech-KITA_AI-Project"]
11
  githubURL = urllib.parse(github.encode('utf8'), ':/')
12
  #torch.hub.download_url_to_file('https://huggingface.co/spaces/Nebulae000/NoteCrawling/blob/main/noteimg2.jpg', 'noteimg2.jpg')
13
 
@@ -33,4 +33,4 @@ article = "<p style='text-align: center'> Handwritten Text Character Recognition
33
  #noteimg1 = torch.hub.download_url_to_file('https://ibb.co/JyMt31q', 'noteimg1.jpg')
34
  #examples = [[noteimg1]]
35
  #examples=examples,
36
- gr.Interface(fn=HCR, inputs="image", outputs = "text", title=title, description=description, article=article, analytics_enabled=False).launch(debug=True)
 
5
  import process as ps
6
  import urllib
7
 
8
+ gitblog = "https://bandalcom.github.io/"
9
  gitblogURL = urllib.parse(gitblog.encode('utf8'), ':/')
10
+ github = "https://github.com/bandalcom/Postech-KITA_AI-Project"
11
  githubURL = urllib.parse(github.encode('utf8'), ':/')
12
  #torch.hub.download_url_to_file('https://huggingface.co/spaces/Nebulae000/NoteCrawling/blob/main/noteimg2.jpg', 'noteimg2.jpg')
13
 
 
33
  #noteimg1 = torch.hub.download_url_to_file('https://ibb.co/JyMt31q', 'noteimg1.jpg')
34
  #examples = [[noteimg1]]
35
  #examples=examples,
36
+ gr.Interface(fn=HCR, inputs="image", outputs = "text", title=title, description=description, article=article, examples=[gitblog], analytics_enabled=False).launch(debug=True)