Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
#959
by
Senmpai333
- opened
app.py
CHANGED
@@ -32,10 +32,7 @@ def infer(prompt):
|
|
32 |
steps = 50
|
33 |
scale = 7.5
|
34 |
#When running locally you can also remove this filter
|
35 |
-
|
36 |
-
if re.search(rf"\b{filter}\b", prompt):
|
37 |
-
raise gr.Error("Unsafe content found. Please try again with different prompts.")
|
38 |
-
|
39 |
#generator = torch.Generator(device=device).manual_seed(seed)
|
40 |
#print("Is GPU busy? ", is_gpu_busy)
|
41 |
images = []
|
|
|
32 |
steps = 50
|
33 |
scale = 7.5
|
34 |
#When running locally you can also remove this filter
|
35 |
+
|
|
|
|
|
|
|
36 |
#generator = torch.Generator(device=device).manual_seed(seed)
|
37 |
#print("Is GPU busy? ", is_gpu_busy)
|
38 |
images = []
|