Spaces:
Runtime error
Runtime error
hellokitty
commited on
Commit
•
fbcc544
1
Parent(s):
cfc7f97
Update app.py
Browse files
app.py
CHANGED
@@ -39,12 +39,11 @@ img#style-image {
|
|
39 |
'''
|
40 |
demo = gr.Blocks(css=css)
|
41 |
with demo:
|
42 |
-
gr.Markdown('''<h1 id="title">Image
|
43 |
-
gr.Markdown('''Made by : Shreyas Dixit''')
|
44 |
with gr.Column():
|
45 |
input = gr.inputs.Image(label="Upload your Image", type = 'pil', optional=True)
|
46 |
output = gr.outputs.Textbox(type="auto",label="Captions")
|
47 |
-
btn = gr.Button("
|
48 |
btn.click(fn=predict, inputs=input, outputs=output)
|
49 |
|
50 |
demo.launch()
|
|
|
39 |
'''
|
40 |
demo = gr.Blocks(css=css)
|
41 |
with demo:
|
42 |
+
gr.Markdown('''<h1 id="title">Image Captioning 🖼️</h1>''')
|
|
|
43 |
with gr.Column():
|
44 |
input = gr.inputs.Image(label="Upload your Image", type = 'pil', optional=True)
|
45 |
output = gr.outputs.Textbox(type="auto",label="Captions")
|
46 |
+
btn = gr.Button("Generate Caption")
|
47 |
btn.click(fn=predict, inputs=input, outputs=output)
|
48 |
|
49 |
demo.launch()
|