Spaces:
Runtime error
Runtime error
import gradio as gr | |
def image_generation(model, number_of_images=1): | |
Images = 0 | |
return f"generating {number_of_images} images from {model}" | |
if __name__ == "__main__": | |
inputs = gr.inputs.Radio(["Abstract Expressionism", "Impressionism", "Cubism", "Minimalism", "Pop Art", "Color Field", "Hana Hanak houses"]) | |
outputs = gr.outputs.Image(label="Output Image") | |
title = "Projected GAN for painting generation" | |
description = "choose your artistic direction " | |
article = "<p style='text-align: center'><a href='https://github.com/autonomousvision/projected_gan'>Official projected GAn github repo + paper</a> | <a href='https://github.com/facebookresearch/pytorch_GAN_zoo/blob/master/models/DCGAN.py'>Github Repo</a></p>" | |
gr.Interface(image_generation, inputs, outputs, title=title, article = article, | |
description=description, analytics_enabled=False).launch(debug=True) | |
app, local_url, share_url = iface.launch() | |