jykoh commited on
Commit
cf26d89
Β·
1 Parent(s): b658f7b

Try fixing saving of png

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -32,6 +32,7 @@ css = """
32
  @media (hover: none) {
33
  #gallery img:hover {transform: none; z-index: 999999; position: relative; padding-right: 0; 0;}
34
  }
 
35
  """
36
 
37
  examples = [
@@ -154,6 +155,7 @@ with gr.Blocks(css=css) as demo:
154
  <li>Start by inputting either image or text prompts (or both) and chat with GILL to get image-and-text replies.</li>
155
  <li>Tweak the level of sensitivity to images and text using the parameters on the right.</li>
156
  <li>Check out cool conversations in the examples or community tab for inspiration and share your own!</li>
 
157
  <li>For faster inference without waiting in queue, you may duplicate the space and use your own GPU: <a href="https://huggingface.co/spaces/jykoh/gill?duplicate=true"><img style="display: inline-block; margin-top: 0em; margin-bottom: 0em" src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a></li>
158
  </ul>
159
  """)
 
32
  @media (hover: none) {
33
  #gallery img:hover {transform: none; z-index: 999999; position: relative; padding-right: 0; 0;}
34
  }
35
+ .html2canvas-container { width: 3000px !important; height: 3000px !important; }
36
  """
37
 
38
  examples = [
 
155
  <li>Start by inputting either image or text prompts (or both) and chat with GILL to get image-and-text replies.</li>
156
  <li>Tweak the level of sensitivity to images and text using the parameters on the right.</li>
157
  <li>Check out cool conversations in the examples or community tab for inspiration and share your own!</li>
158
+ <li>If the model outputs a blank image, it is because Stable Diffusion's safety filter detected inappropriate content. Please try again with a different prompt.</li>
159
  <li>For faster inference without waiting in queue, you may duplicate the space and use your own GPU: <a href="https://huggingface.co/spaces/jykoh/gill?duplicate=true"><img style="display: inline-block; margin-top: 0em; margin-bottom: 0em" src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a></li>
160
  </ul>
161
  """)