santoshtyss commited on
Commit
b1f1a47
·
1 Parent(s): acae3db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -213,7 +213,7 @@ def proceed_with_generation(input_file, extract_text, prompt_text, shot_radio, s
213
  print(translated_prompt)
214
  output = SDpipe(translated_prompt, height=512, width=512, num_images_per_prompt=4, device=0)
215
  return output.images
216
- elif extract_text != "" and input_file == "" and prompt_text !='':
217
  translated_prompt = translate_sentence(prompt_text, flores_codes[lang_choice], flores_codes["English"])
218
  translated_prompt = add_to_prompt(translated_prompt,shot_radio, style_radio, lighting_radio, context_radio, lens_radio, device_radio)
219
  print(translated_prompt)
 
213
  print(translated_prompt)
214
  output = SDpipe(translated_prompt, height=512, width=512, num_images_per_prompt=4, device=0)
215
  return output.images
216
+ elif extract_text != "" and input_file != "" and prompt_text !='':
217
  translated_prompt = translate_sentence(prompt_text, flores_codes[lang_choice], flores_codes["English"])
218
  translated_prompt = add_to_prompt(translated_prompt,shot_radio, style_radio, lighting_radio, context_radio, lens_radio, device_radio)
219
  print(translated_prompt)