Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def query(prompt, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Ka
|
|
26 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
27 |
|
28 |
# Translate the prompt from Russian to English if necessary
|
29 |
-
prompt = GoogleTranslator(source='
|
30 |
print(f'\033[1mGeneration {key} translation:\033[0m {prompt}')
|
31 |
|
32 |
# Add some extra flair to the prompt
|
|
|
26 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
27 |
|
28 |
# Translate the prompt from Russian to English if necessary
|
29 |
+
prompt = GoogleTranslator(source='id', target='en').translate(prompt)
|
30 |
print(f'\033[1mGeneration {key} translation:\033[0m {prompt}')
|
31 |
|
32 |
# Add some extra flair to the prompt
|