File size: 466 Bytes
7967be5
5d66590
 
 
7967be5
 
 
 
 
 
5d66590
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()