akhaliq HF staff commited on
Commit
e847a79
1 Parent(s): 2726570

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ os.system("wget https://github.com/nyx-ai/stylegan2-flax-tpu/releases/download/v
5
  os.mkdir("generated_images")
6
 
7
  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
  gr.Interface(inference,["number",gr.Slider(step=0.1)],"image").launch()
 
5
  os.mkdir("generated_images")
6
 
7
  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
  gr.Interface(inference,["number",gr.Slider(step=0.1)],"image").launch()