SMD00 commited on
Commit
05f6e65
·
1 Parent(s): 447243e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -367,12 +367,12 @@ def main_func(filepath):
367
  img=visualize(model, data, a)
368
  return (size_text,img)
369
 
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,
377
  description=description,
378
  # examples=[['a.png', ['Generate text']], ['b.png', ['Generate text','Summary','Important Sentences']], ]
 
367
  img=visualize(model, data, a)
368
  return (size_text,img)
369
 
370
+ title = "Image Colorization"
371
+ description = "Gradio demo for Image Colorization project. You can give an image as input on the left side and then click on the submit button. The program would recolorize the image"
372
  gr.Interface(
373
  main_func,
374
+ [gr.inputs.Image(type="filepath", label="Input Image") ],
375
+ [gr.outputs.Textbox(label="Image Size"),"image"],
376
  title=title,
377
  description=description,
378
  # examples=[['a.png', ['Generate text']], ['b.png', ['Generate text','Summary','Important Sentences']], ]