akhaliq HF staff commited on
Commit
37ab172
1 Parent(s): 8063a08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -8,5 +8,6 @@ def inference(seeds,truncation_psi):
8
  os.system("python generate_images.py --checkpoint cookie-256.pkl --seeds "+str(int(seeds))+" --truncation_psi "+str(truncation_psi)+" --out_path generated_images/")
9
  return "generated_images/"+str(int(seeds))+".png"
10
 
11
- title="# Gradio demo for [nyx-ai/stylegan2-flax-tpu](https://github.com/nyx-ai/stylegan2-flax-tpu)"
12
- gr.Interface(inference,["number",gr.Slider(step=0.1,value=0.7,maximum=2.0)],"image",title=title).launch()
 
 
8
  os.system("python generate_images.py --checkpoint cookie-256.pkl --seeds "+str(int(seeds))+" --truncation_psi "+str(truncation_psi)+" --out_path generated_images/")
9
  return "generated_images/"+str(int(seeds))+".png"
10
 
11
+ title="stylegan2-flax-tpu"
12
+ description="# Gradio demo for [nyx-ai/stylegan2-flax-tpu](https://github.com/nyx-ai/stylegan2-flax-tpu). Demo uses the pretrained model for cookies"
13
+ gr.Interface(inference,["number",gr.Slider(step=0.1,value=0.7,maximum=2.0)],"image",title=title,description=description).launch()