Yaron Koresh commited on
Commit
33f3309
·
verified ·
1 Parent(s): 0c8044e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
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 deep warm colors, rough texture, proportional structure, dynamic poze, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, cold muted pastel background'
91
  else:
92
- _do = f'{ prompt_en }, natural deep warm colors, rough texture, proportional structure, dynamic poze, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, cold muted pastel background'
93
  if prompt2 == None or prompt2.strip() == "":
94
  _dont = 'ugly, deformed, inflated, disfigured, poor details, bad anatomy, logos, texts, any labels'
95
  else:
@@ -98,11 +98,13 @@ def infer(prompt,prompt2):
98
  return name
99
 
100
  css="""
 
 
 
101
  #col-container {
102
  margin: 0 auto;
103
  max-width: 15cm;
104
- max-height: 80vh;
105
- }
106
  #image-container {
107
  aspect-ratio: 3 / 4;
108
  }
 
87
  prompt_en = translate(prompt,"english")
88
  prompt2_en = translate(prompt2,"english")
89
  if prompt == None or prompt.strip() == "":
90
+ _do = 'vivid natural colors, rough texture, proportional structure, dynamic poze, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, deep pastel background'
91
  else:
92
+ _do = f'{ prompt_en }, vivid natural colors, rough texture, proportional structure, dynamic poze, realistic details, award winning photograph, soft natural lighting, deep field, high definition, highly detailed, deep pastel background'
93
  if prompt2 == None or prompt2.strip() == "":
94
  _dont = 'ugly, deformed, inflated, disfigured, poor details, bad anatomy, logos, texts, any labels'
95
  else:
 
98
  return name
99
 
100
  css="""
101
+ footer {
102
+ display: none !important;
103
+ }
104
  #col-container {
105
  margin: 0 auto;
106
  max-width: 15cm;
107
+ }
 
108
  #image-container {
109
  aspect-ratio: 3 / 4;
110
  }