Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def infer(image_input):
|
|
46 |
|
47 |
result = get_text_after_colon(result)
|
48 |
|
49 |
-
return
|
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=[
|
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()
|