Spaces:
Runtime error
Runtime error
Commit
Β·
6bf135f
1
Parent(s):
4d691d0
Updated app.py 16:15
Browse files
app.py
CHANGED
@@ -63,6 +63,8 @@ def transform_ncuda(img,prompt,cfg=8.0,stps=30,sc=0.8):
|
|
63 |
# Set up our warning to print to the console if the adult content classifier is tripped.
|
64 |
# If adult content classifier is not tripped, display generated image.
|
65 |
for resp in answers2:
|
|
|
|
|
66 |
for artifact in resp.artifacts:
|
67 |
if artifact.finish_reason == generation.FILTER:
|
68 |
warnings.warn(
|
|
|
63 |
# Set up our warning to print to the console if the adult content classifier is tripped.
|
64 |
# If adult content classifier is not tripped, display generated image.
|
65 |
for resp in answers2:
|
66 |
+
print(resp)
|
67 |
+
print(f'Type = {resp.__class__}')
|
68 |
for artifact in resp.artifacts:
|
69 |
if artifact.finish_reason == generation.FILTER:
|
70 |
warnings.warn(
|