Spaces:
Runtime error
Runtime error
santoshtyss
commited on
Commit
·
0bc591a
1
Parent(s):
0f16004
Update app.py
Browse files
app.py
CHANGED
@@ -205,7 +205,7 @@ def proceed_with_generation(input_file, extract_text, prompt_text, shot_radio, s
|
|
205 |
translated_prompt = translate_sentence(prompt_text, flores_codes[lang_choice], flores_codes["English"])
|
206 |
translated_prompt = add_to_prompt(translated_prompt,shot_radio, style_radio, lighting_radio, context_radio, lens_radio, device_radio)
|
207 |
print(translated_prompt)
|
208 |
-
output = SDpipe(translated_prompt, height=512, width=512, num_images_per_prompt=4
|
209 |
return output.images
|
210 |
elif extract_text != "" and input_file != "" and prompt_text !='':
|
211 |
translated_prompt = translate_sentence(prompt_text, flores_codes[lang_choice], flores_codes["English"])
|
|
|
205 |
translated_prompt = translate_sentence(prompt_text, flores_codes[lang_choice], flores_codes["English"])
|
206 |
translated_prompt = add_to_prompt(translated_prompt,shot_radio, style_radio, lighting_radio, context_radio, lens_radio, device_radio)
|
207 |
print(translated_prompt)
|
208 |
+
output = SDpipe(translated_prompt, height=512, width=512, num_images_per_prompt=4)
|
209 |
return output.images
|
210 |
elif extract_text != "" and input_file != "" and prompt_text !='':
|
211 |
translated_prompt = translate_sentence(prompt_text, flores_codes[lang_choice], flores_codes["English"])
|