Arijit-hazra commited on
Commit
ba777f7
·
1 Parent(s): bbc8b41

trying with parallel gradio

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -44,7 +44,13 @@ def img_transcribes(image):
44
  result.append(single_img_transcribe(image, t))
45
  return result
46
 
47
- gr.Interface(fn=img_transcribes,
48
  inputs=gr.Image(type="pil"),
49
  outputs=["text","text","text"]
50
- ).launch()
 
 
 
 
 
 
 
44
  result.append(single_img_transcribe(image, t))
45
  return result
46
 
47
+ iface1 = gr.Interface(fn=img_transcribes,
48
  inputs=gr.Image(type="pil"),
49
  outputs=["text","text","text"]
50
+ )
51
+ iface2 = gr.Interface(fn=img_transcribes,
52
+ inputs=gr.Image(type="pil"),
53
+ outputs=["text","text","text"]
54
+ )
55
+
56
+ gr.parallel(iface1, iface2).launch()