Spaces:
Running
Running
shweaung
commited on
Commit
•
20fb0bf
1
Parent(s):
7ad62ba
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def query(prompt, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Ka
|
|
24 |
API_TOKEN = random.choice([os.getenv("HF_READ_TOKEN")])
|
25 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
26 |
|
27 |
-
prompt = GoogleTranslator(source='
|
28 |
print(f'\033[1mGeneration {key} translation:\033[0m {prompt}')
|
29 |
|
30 |
prompt = f"{prompt} | ultra detail, ultra elaboration, ultra quality, perfect."
|
|
|
24 |
API_TOKEN = random.choice([os.getenv("HF_READ_TOKEN")])
|
25 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
26 |
|
27 |
+
prompt = GoogleTranslator(source='my', target='en').translate(prompt)
|
28 |
print(f'\033[1mGeneration {key} translation:\033[0m {prompt}')
|
29 |
|
30 |
prompt = f"{prompt} | ultra detail, ultra elaboration, ultra quality, perfect."
|