fffiloni commited on
Commit
20c0b53
1 Parent(s): 3b617f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -46,7 +46,7 @@ def infer(image_input):
46
 
47
  result = get_text_after_colon(result)
48
 
49
- return clipi_result, result
50
 
51
  css="""
52
  #col-container {max-width: 910px; margin-left: auto; margin-right: auto;}
@@ -66,8 +66,8 @@ with gr.Blocks(css=css) as demo:
66
  image_in = gr.Image(label="Image input", type="filepath")
67
  submit_btn = gr.Button('Sumbit')
68
  with gr.Column():
69
- caption = gr.Textbox(label="Generated Caption")
70
  story = gr.Textbox(label="generated Story")
71
- submit_btn.click(fn=infer, inputs=[image_in], outputs=[caption, story])
72
 
73
  demo.queue().launch()
 
46
 
47
  result = get_text_after_colon(result)
48
 
49
+ return result
50
 
51
  css="""
52
  #col-container {max-width: 910px; margin-left: auto; margin-right: auto;}
 
66
  image_in = gr.Image(label="Image input", type="filepath")
67
  submit_btn = gr.Button('Sumbit')
68
  with gr.Column():
69
+ #caption = gr.Textbox(label="Generated Caption")
70
  story = gr.Textbox(label="generated Story")
71
+ submit_btn.click(fn=infer, inputs=[image_in], outputs=[story])
72
 
73
  demo.queue().launch()