Yannic Kilcher commited on
Commit
269cb30
2 Parent(s): a74df5c 8d90090

Merge branch 'gradio'

Browse files
Files changed (3) hide show
  1. README.md +11 -0
  2. interface.py +1 -1
  3. requirements.txt +5 -0
README.md CHANGED
@@ -1,3 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
1
  ## Project repo for apes by ykilcher
2
 
3
  Note: most of the code is taken from nvlabs/stylegan2-ada-pytroch (original readme below).
 
1
+ ---
2
+ title: Apes
3
+ emoji: 💩
4
+ colorFrom: gray
5
+ colorTo: pink
6
+ sdk: gradio
7
+ sdk_version: 2.9.1
8
+ app_file: interface.py
9
+ pinned: false
10
+ ---
11
+
12
  ## Project repo for apes by ykilcher
13
 
14
  Note: most of the code is taken from nvlabs/stylegan2-ada-pytroch (original readme below).
interface.py CHANGED
@@ -64,7 +64,7 @@ def greet(num_images, interpolate):
64
 
65
 
66
  iface = gr.Interface(fn=greet, inputs=[
67
- gr.inputs.Number(default=1, label="Num Images"),
68
  gr.inputs.Checkbox(default=False, label="Interpolate")
69
  ], outputs="image")
70
  iface.launch()
 
64
 
65
 
66
  iface = gr.Interface(fn=greet, inputs=[
67
+ gr.inputs.Slider(default=1, label="Num Images", minimum=1, maximum=16, step=1),
68
  gr.inputs.Checkbox(default=False, label="Interpolate")
69
  ], outputs="image")
70
  iface.launch()
requirements.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ torch
2
+ numpy
3
+ Pillow
4
+ imageio
5
+ scipy