Spaces:
Runtime error
Runtime error
hellokitty
commited on
Commit
•
e83e38e
1
Parent(s):
3ea04c5
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,6 @@ img#style-image {
|
|
35 |
max-height: 600px;
|
36 |
}
|
37 |
'''
|
38 |
-
examples = [f"example{i}.jpg" for i in range(1,7)]
|
39 |
|
40 |
demo = gr.Blocks(css=css)
|
41 |
with demo:
|
@@ -45,6 +44,6 @@ with demo:
|
|
45 |
output = gr.outputs.Textbox(type="auto",label="Captions")
|
46 |
examples = examples
|
47 |
btn = gr.Button("Generate Caption")
|
48 |
-
btn.click(fn=predict, inputs=input, outputs=output
|
49 |
|
50 |
demo.launch()
|
|
|
35 |
max-height: 600px;
|
36 |
}
|
37 |
'''
|
|
|
38 |
|
39 |
demo = gr.Blocks(css=css)
|
40 |
with demo:
|
|
|
44 |
output = gr.outputs.Textbox(type="auto",label="Captions")
|
45 |
examples = examples
|
46 |
btn = gr.Button("Generate Caption")
|
47 |
+
btn.click(fn=predict, inputs=input, outputs=output)
|
48 |
|
49 |
demo.launch()
|