Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,11 +34,11 @@ examples = [
|
|
34 |
io = gr.Interface(fn=predict,
|
35 |
#inputs=gr.inputs.Image(type='pil'),
|
36 |
inputs=[
|
37 |
-
gr.
|
38 |
-
gr.
|
39 |
-
gr.
|
40 |
],
|
41 |
-
outputs=gr.
|
42 |
title=title, description=description, examples=examples,
|
43 |
allow_flagging=False, allow_screenshot=False)
|
44 |
io.launch(show_errors=True)
|
|
|
34 |
io = gr.Interface(fn=predict,
|
35 |
#inputs=gr.inputs.Image(type='pil'),
|
36 |
inputs=[
|
37 |
+
gr.Textbox(label="Prompt", value="Describe the following image:"),
|
38 |
+
gr.Textbox(label="image URL", placeholder="Insert the URL of the image to be described"),
|
39 |
+
gr.Slider(label="Max tokens", value=64, max=128, min=16, step=8)
|
40 |
],
|
41 |
+
outputs=gr.Textbox(label="IDEFICS Description"),
|
42 |
title=title, description=description, examples=examples,
|
43 |
allow_flagging=False, allow_screenshot=False)
|
44 |
io.launch(show_errors=True)
|