Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def split_image(input_image, num_splits=4):
|
|
32 |
def translate_to_english(text):
|
33 |
return translator(text)[0]['translation_text']
|
34 |
|
35 |
-
|
36 |
def predict(prompt, seed=42, randomize_seed=False, guidance_scale=5.0, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
37 |
if any('\u3131' <= char <= '\u318E' or '\uAC00' <= char <= '\uD7A3' for char in prompt):
|
38 |
prompt = translate_to_english(prompt)
|
|
|
32 |
def translate_to_english(text):
|
33 |
return translator(text)[0]['translation_text']
|
34 |
|
35 |
+
@spaces.GPU()
|
36 |
def predict(prompt, seed=42, randomize_seed=False, guidance_scale=5.0, num_inference_steps=28, progress=gr.Progress(track_tqdm=True)):
|
37 |
if any('\u3131' <= char <= '\u318E' or '\uAC00' <= char <= '\uD7A3' for char in prompt):
|
38 |
prompt = translate_to_english(prompt)
|