marcelcastrobr's picture
Adding image search
5d66590
raw history blame
No virus
466 Bytes
import gradio as gr
#Example from https://huggingface.co/spaces/merve/BigGAN-ImageNET
description = "Text to image demo πŸ¦€"
title = "BigGAN ImageNet"
def greet(name):
return "Hello there " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()
interface = gr.Interface.load("huggingface/osanseviero/BigGAN-deep-128",
description=description,
title = title,
examples=[["american robin"]]
)
interface.launch()