Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Right, but if a GUI is the only requirement, it might be simpler to use gradio.

It only takes a few lines (pasted from https://huggingface.co/spaces/akhaliq/Real-ESRGAN):

  gr.Interface(
      inference, 
      [gr.inputs.Image(type="pil", label="Input"),gr.inputs.Radio(["base","anime"], type="value", default="base", label="model type")], 
      gr.outputs.Image(type="file", label="Output"),
    title=title,
    description=description,
    article=article,
    examples=[
    ['bear.jpg','base'],
    ['anime.png','anime']
    ]).launch()


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: