Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -370,7 +370,7 @@ def main_func(filepath):
|
|
| 370 |
title = "PicSum"
|
| 371 |
description = "Gradio demo for PicSum project. You can give an image as input on the left side and then click on the submit button. The generated text, summary, important sentences and fill in the gaps would be generated on the right side."
|
| 372 |
gr.Interface(
|
| 373 |
-
|
| 374 |
[gr.inputs.Image(type="filepath", label="Input"),gr.inputs.CheckboxGroup(choices, type="value", default=['Generate text'], label='Options') ],
|
| 375 |
[gr.outputs.Textbox(label="Generated Text"),"image"],
|
| 376 |
title=title,
|
|
|
|
| 370 |
title = "PicSum"
|
| 371 |
description = "Gradio demo for PicSum project. You can give an image as input on the left side and then click on the submit button. The generated text, summary, important sentences and fill in the gaps would be generated on the right side."
|
| 372 |
gr.Interface(
|
| 373 |
+
main_func,
|
| 374 |
[gr.inputs.Image(type="filepath", label="Input"),gr.inputs.CheckboxGroup(choices, type="value", default=['Generate text'], label='Options') ],
|
| 375 |
[gr.outputs.Textbox(label="Generated Text"),"image"],
|
| 376 |
title=title,
|