ramhemanth580 commited on
Commit
36623a7
1 Parent(s): 9bc9d6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,4 +1,4 @@
1
- import os
2
  import gradio as gr
3
  from transformers import pipeline
4
 
@@ -7,8 +7,8 @@ pipe = pipeline("image-to-text",
7
  def launch(input):
8
  out = pipe(input)
9
  return out[0]['generated_text']
 
10
  iface = gr.Interface(launch,
11
  inputs=gr.Image(type='pil'),
12
  outputs="text")
13
- iface.launch(
14
- server_port=int(os.environ['PORT1']))
 
1
+
2
  import gradio as gr
3
  from transformers import pipeline
4
 
 
7
  def launch(input):
8
  out = pipe(input)
9
  return out[0]['generated_text']
10
+
11
  iface = gr.Interface(launch,
12
  inputs=gr.Image(type='pil'),
13
  outputs="text")
14
+ iface.launch())