Arijit-hazra commited on
Commit
7a0bbe6
·
1 Parent(s): 4efd9ed

I wasn't capital enough 🥲

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -13,7 +13,6 @@ def custom_standardization(s):
13
  return s
14
 
15
  model = build()
16
- print(model)
17
 
18
  def single_img_transcribe(image, temperature=1):
19
  initial = model.word_to_index([['[START]']]) # (batch, sequence)
@@ -42,8 +41,7 @@ def img_transcribes(image):
42
  result.append(single_transcribe(image, t))
43
  return result
44
 
45
- iface = gr.interface(fn=img_transcribes,
46
  inputs=gr.Image(type="pil"),
47
  outputs=["text","text","text"]
48
- )
49
- iface.launch()
 
13
  return s
14
 
15
  model = build()
 
16
 
17
  def single_img_transcribe(image, temperature=1):
18
  initial = model.word_to_index([['[START]']]) # (batch, sequence)
 
41
  result.append(single_transcribe(image, t))
42
  return result
43
 
44
+ gr.Interface(fn=img_transcribes,
45
  inputs=gr.Image(type="pil"),
46
  outputs=["text","text","text"]
47
+ ).launch()