Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,4 +35,5 @@ def inference(raw_image):
|
|
35 |
caption = model.generate(image, sample=False, num_beams=3, max_length=20, min_length=5)
|
36 |
return caption[0]
|
37 |
|
38 |
-
gr.Interface(inference, inputs, outputs, title=title, description=description)
|
|
|
|
35 |
caption = model.generate(image, sample=False, num_beams=3, max_length=20, min_length=5)
|
36 |
return caption[0]
|
37 |
|
38 |
+
demo = gr.Interface(inference, inputs, outputs, title=title, description=description)
|
39 |
+
demo.launch()
|