geraskalnas commited on
Commit
e64c06c
·
1 Parent(s): f07eda3

try bigGAN

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -1,7 +1,9 @@
1
  import gradio as gr
2
-
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
-
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
1
  import gradio as gr
2
+ description = "BigGAN text-to-image demo."
3
+ title = "BigGAN ImageNet"
4
+ interface = gr.Interface.load("huggingface/osanseviero/BigGAN-deep-128",
5
+ description=description,
6
+ title = title,
7
+ examples=[["american robin"]]
8
+ )
9
+ interface.launch()