Spaces:
Runtime error
Runtime error
Commit
Β·
ef7132f
1
Parent(s):
98f1df9
Updated app.py 16:38
Browse files
app.py
CHANGED
@@ -28,6 +28,7 @@ import numpy as np
|
|
28 |
from PIL import Image
|
29 |
import cv2
|
30 |
|
|
|
31 |
current_time = time.asctime()
|
32 |
|
33 |
stability_api = client.StabilityInference(
|
@@ -64,7 +65,7 @@ def transform_ncuda(img,prompt,cfg=8.0,stps=30,sc=0.8):
|
|
64 |
# If adult content classifier is not tripped, display generated image.
|
65 |
for resp in answers2:
|
66 |
print('----------------------------------------------------------------------------------')
|
67 |
-
print(resp)
|
68 |
print(f'Type = {resp.__class__}')
|
69 |
for artifact in resp.artifacts:
|
70 |
if artifact.finish_reason == generation.FILTER:
|
|
|
28 |
from PIL import Image
|
29 |
import cv2
|
30 |
|
31 |
+
print("Hello")
|
32 |
current_time = time.asctime()
|
33 |
|
34 |
stability_api = client.StabilityInference(
|
|
|
65 |
# If adult content classifier is not tripped, display generated image.
|
66 |
for resp in answers2:
|
67 |
print('----------------------------------------------------------------------------------')
|
68 |
+
print(f'{resp}')
|
69 |
print(f'Type = {resp.__class__}')
|
70 |
for artifact in resp.artifacts:
|
71 |
if artifact.finish_reason == generation.FILTER:
|