Yaron Koresh commited on
Commit
0b8a852
·
verified ·
1 Parent(s): bf3b5c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -87,9 +87,9 @@ def infer(prompt,prompt2):
87
  prompt_en = translate(prompt,"english")
88
  prompt2_en = translate(prompt2,"english")
89
  if prompt == None or prompt.strip() == "":
90
- _do = 'natural colors, rough texture, dynamic poze, proportional arrangement, realistic, soft natural lighting, deep field, highly detailed, blurred background'
91
  else:
92
- _do = f'{ prompt_en }, natural colors, rough texture, dynamic poze, proportional arrangement, realistic, soft natural lighting, deep field, highly detailed, blurred background'
93
  if prompt2 == None or prompt2.strip() == "":
94
  _dont = 'ugly, deformed, inflated, disfigured, poor details, bad anatomy, logos, texts, labels'
95
  else:
@@ -149,7 +149,7 @@ with gr.Blocks(theme=gr.themes.Soft(),css=css,js=js) as demo:
149
  )
150
  with gr.Row():
151
  run_button = gr.Button("Run")
152
- result = gr.Image(elem_id="image-container", label="Result", show_label=False, type='filepath')
153
  prompt.submit(
154
  fn = infer,
155
  inputs = [prompt,prompt2],
 
87
  prompt_en = translate(prompt,"english")
88
  prompt2_en = translate(prompt2,"english")
89
  if prompt == None or prompt.strip() == "":
90
+ _do = 'bright vivid natural colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, realistic photograph, soft lighting, deep field, highly detailed, blurred background'
91
  else:
92
+ _do = f'{ prompt_en }, bright vivid natural colors, rough texture, dynamic poze, proportional arrangement, reasonable combination, realistic photograph, soft lighting, deep field, highly detailed, blurred background'
93
  if prompt2 == None or prompt2.strip() == "":
94
  _dont = 'ugly, deformed, inflated, disfigured, poor details, bad anatomy, logos, texts, labels'
95
  else:
 
149
  )
150
  with gr.Row():
151
  run_button = gr.Button("Run")
152
+ result = gr.Image(elem_id="image-container", label="Result", show_label=False, type='filepath', show_share_button=False)
153
  prompt.submit(
154
  fn = infer,
155
  inputs = [prompt,prompt2],