diegulio commited on
Commit
c5d2e12
·
1 Parent(s): bef6714

json result

Browse files
Files changed (2) hide show
  1. cedula/app.py +1 -1
  2. license/app.py +1 -1
cedula/app.py CHANGED
@@ -137,7 +137,7 @@ def get_attributes(input_img):
137
  seq = re.sub(r"<.*?>", "", seq, count=1).strip() # remove first task start token
138
  seq = processor.token2json(seq)
139
 
140
- return str(seq)
141
 
142
  #demo = gr.Interface(get_attributes, "file", "label")
143
  #demo.launch()
 
137
  seq = re.sub(r"<.*?>", "", seq, count=1).strip() # remove first task start token
138
  seq = processor.token2json(seq)
139
 
140
+ return seq
141
 
142
  #demo = gr.Interface(get_attributes, "file", "label")
143
  #demo.launch()
license/app.py CHANGED
@@ -135,7 +135,7 @@ def get_attributes(input_img):
135
  seq = re.sub(r"<.*?>", "", seq, count=1).strip() # remove first task start token
136
  seq = processor.token2json(seq)
137
 
138
- return str(seq)
139
 
140
  #demo = gr.Interface(get_attributes, "file", "label")
141
  #demo.launch()
 
135
  seq = re.sub(r"<.*?>", "", seq, count=1).strip() # remove first task start token
136
  seq = processor.token2json(seq)
137
 
138
+ return seq
139
 
140
  #demo = gr.Interface(get_attributes, "file", "label")
141
  #demo.launch()