Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,19 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
import os
|
4 |
-
import gradio as gr
|
5 |
-
#from diffusers import StableDiffusionPipeline
|
6 |
-
#import torch
|
7 |
-
|
8 |
-
#model_id = "runwayml/stable-diffusion-v1-5"
|
9 |
-
#pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.get_default_dtype())
|
10 |
-
#pipe = pipe.to("cpu")
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
|
|
|
17 |
name = "andite/anything-v4.0"
|
18 |
model = gr.Interface.load(f"models/{name}")
|
19 |
|
@@ -27,15 +16,6 @@ def ac():
|
|
27 |
elif h != o:
|
28 |
return(None)
|
29 |
|
30 |
-
'''
|
31 |
-
num_images_per_prompt=n_images,
|
32 |
-
num_inference_steps = int(steps),
|
33 |
-
guidance_scale = guidance,
|
34 |
-
width = width,
|
35 |
-
height = height,
|
36 |
-
generator = generator,
|
37 |
-
callback=pipe_callback)
|
38 |
-
'''
|
39 |
with gr.Blocks() as b:
|
40 |
put = gr.Textbox()
|
41 |
with gr.Row():
|
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
name2 = runwayml/stable-diffusion-v1-5
|
6 |
name = "andite/anything-v4.0"
|
7 |
model = gr.Interface.load(f"models/{name}")
|
8 |
|
|
|
16 |
elif h != o:
|
17 |
return(None)
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
with gr.Blocks() as b:
|
20 |
put = gr.Textbox()
|
21 |
with gr.Row():
|