akhaliq's picture
akhaliq HF staff
add app
2979765
raw
history blame
470 Bytes
import gradio as gr
import os
os.system("wget https://github.com/nyx-ai/stylegan2-flax-tpu/releases/download/v0.1/cookie-256.pkl")
os.mkdir("generated_images")
def inference(seeds,truncation_psi):
os.system("python generate_images.py --checkpoint cookie-256.pkl --seeds"+ seeds+ "--truncation_psi "+ truncation_psi+" --out_path generated_images/")
return "generated_images/"+seeds+".png"
gr.Interface(inference,["number",gr.Slider(step=0.1)],"image").launch()