Spaces:
Runtime error
Runtime error
fix main and utils
Browse files
main.py
CHANGED
|
@@ -7,7 +7,7 @@ import numpy as np
|
|
| 7 |
|
| 8 |
_ = gettext.gettext
|
| 9 |
|
| 10 |
-
language = st.selectbox(_('Choose your language'), ['en', 'it'])
|
| 11 |
try:
|
| 12 |
localizator = gettext.translation('base', localedir='locales', languages=[language])
|
| 13 |
localizator.install()
|
|
@@ -70,5 +70,5 @@ if st.button('Submit'):
|
|
| 70 |
strength=strength)
|
| 71 |
if images["nsfw_content_detected"]:
|
| 72 |
st.write("NSFW content detected, retry with another prompt or image")
|
| 73 |
-
for image in images:
|
| 74 |
-
|
|
|
|
| 7 |
|
| 8 |
_ = gettext.gettext
|
| 9 |
|
| 10 |
+
#language = st.selectbox(_('Choose your language'), ['en', 'it'])
|
| 11 |
try:
|
| 12 |
localizator = gettext.translation('base', localedir='locales', languages=[language])
|
| 13 |
localizator.install()
|
|
|
|
| 70 |
strength=strength)
|
| 71 |
if images["nsfw_content_detected"]:
|
| 72 |
st.write("NSFW content detected, retry with another prompt or image")
|
| 73 |
+
#for image in images:
|
| 74 |
+
st.image(images.images)
|