Alon77777 commited on
Commit
0115d11
1 Parent(s): b118d39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,8 +18,7 @@ from huggingface_hub import snapshot_download
18
 
19
 
20
  is_spaces = True if "SPACE_ID" in os.environ else False
21
- # is_shared_ui = True if "IS_SHARED_UI" in os.environ else False
22
- is_shared_ui = True
23
  is_gpu_associated = torch.cuda.is_available()
24
 
25
  css = '''
@@ -468,6 +467,7 @@ with gr.Blocks(css=css) as demo:
468
  </div>
469
  <p style="margin-bottom: 10px; font-size: 94%">
470
  This is a dreambooth Training UI for <a href="https://huggingface.co/BAAI/AltDiffusion-m9" style="text-decoration: underline;">AltDiffusion-m9 model</a>,which is a multilingual image-to-text model supported 9 languages.
 
471
  </p>
472
  </div>
473
  ''')
 
18
 
19
 
20
  is_spaces = True if "SPACE_ID" in os.environ else False
21
+ is_shared_ui = True if "IS_SHARED_UI" in os.environ else False
 
22
  is_gpu_associated = torch.cuda.is_available()
23
 
24
  css = '''
 
467
  </div>
468
  <p style="margin-bottom: 10px; font-size: 94%">
469
  This is a dreambooth Training UI for <a href="https://huggingface.co/BAAI/AltDiffusion-m9" style="text-decoration: underline;">AltDiffusion-m9 model</a>,which is a multilingual image-to-text model supported 9 languages.
470
+ You can duplicate this space to your own!<a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/{os.environ['SPACE_ID']}?duplicate=true"><img 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>
471
  </p>
472
  </div>
473
  ''')