Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -16,12 +16,7 @@ word_list = word_list_dataset["train"]['text']
|
|
16 |
is_gpu_busy = False
|
17 |
def infer(prompt, negative, scale):
|
18 |
global is_gpu_busy
|
19 |
-
|
20 |
-
if re.search(rf"\b{filter}\b", prompt):
|
21 |
-
print(filter)
|
22 |
-
print(prompt)
|
23 |
-
raise gr.Error("Unsafe content found. Please try again with different prompts.")
|
24 |
-
|
25 |
images = []
|
26 |
url = os.getenv('JAX_BACKEND_URL')
|
27 |
print(url)
|
|
|
16 |
is_gpu_busy = False
|
17 |
def infer(prompt, negative, scale):
|
18 |
global is_gpu_busy
|
19 |
+
|
|
|
|
|
|
|
|
|
|
|
20 |
images = []
|
21 |
url = os.getenv('JAX_BACKEND_URL')
|
22 |
print(url)
|