Spaces:
Sleeping
Sleeping
Update app.py
Browse files8 unmodified lines9101112131468 unmodified lines838485868788899091929394958 unmodified linesdevice = "cuda" if torch.cuda.is_available() else "cpu"#model_repo_id = "stabilityai/sdxl-turbo" # Replace to the model you would like to usemodel_repo_id = "CompVis/stable-diffusion-v1-4"if torch.cuda.is_available():torch_dtype = torch.float1668 unmodified linesresult = gr.Image(label="Result", show_label=False)with gr.Accordion("Advanced Settings", open=False):model_repo_id = gr.Text(label="Model Id",max_lines=1,placeholder="Choose model",visible=True,value=model_repo_id,)negative_prompt = gr.Text(label="Negative prompt",8 unmodified lines910111213141568 unmodified lines848586878889909192939495969798991001011021031048 unmodified linesdevice = "cuda" if torch.cuda.is_available() else "cpu"#model_repo_id = "stabilityai/sdxl-turbo" # Replace to the model you would like to usemodel_repo_id = "CompVis/stable-diffusion-v1-4"model_dropdown = ['stabilityai/sdxl-turbo', 'CompVis/stable-diffusion-v1-4' ]if torch.cuda.is_available():torch_dtype = torch.float1668 unmodified linesresult = gr.Image(label="Result", show_label=False)with gr.Accordion("Advanced Settings", open=False):# model_repo_id = gr.Text(# label="Model Id",# max_lines=1,# placeholder="Choose model",# visible=True,# value=model_repo_id,# )model_repo_id = gr.DropDown(label="Model Id",choices=model_dropdown,max_lines=1,placeholder="Choose model",visible=True,value=model_repo_id,)negative_prompt = gr.Text(label="Negative prompt",
app.py+11-2