edyrkaj commited on
Commit
17f4049
1 Parent(s): baeaac9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -28,15 +28,14 @@ def launch(input):
28
  out = pipe(input)
29
  context_str = out[0]['generated_text']
30
  translate_str = translate(context_str, 'en', 'sq')
31
-
32
  return translate_str
33
 
34
- iface.launch(share=True)
35
-
36
  iface = gr.Interface(launch,
37
  inputs=gr.Image(type='pil'),
38
  outputs="text")
39
 
 
40
  # iface.launch(share=True,
41
  # server_port=int(os.environ['PORT1']))
42
 
 
28
  out = pipe(input)
29
  context_str = out[0]['generated_text']
30
  translate_str = translate(context_str, 'en', 'sq')
 
31
  return translate_str
32
 
33
+ # Start gradio interface
 
34
  iface = gr.Interface(launch,
35
  inputs=gr.Image(type='pil'),
36
  outputs="text")
37
 
38
+ iface.launch(share=True)
39
  # iface.launch(share=True,
40
  # server_port=int(os.environ['PORT1']))
41