Ziqi commited on
Commit
2b90a75
1 Parent(s): 70ff35f
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -20,8 +20,8 @@ import gradio as gr
20
  import torch
21
 
22
  from inference import InferencePipeline
23
- from trainer import Trainer
24
- from uploader import upload
25
 
26
  TITLE = '# Custom Diffusion + StableDiffusion Training UI'
27
  DESCRIPTION = '''This is a demo for [https://github.com/adobe-research/custom-diffusion](https://github.com/adobe-research/custom-diffusion).
@@ -37,7 +37,7 @@ This also reduces the extra storage for each additional concept to 75MB. Our met
37
  </center>
38
  '''
39
 
40
- ORIGINAL_SPACE_ID = 'nupurkmr9/custom-diffusion'
41
  SPACE_ID = os.getenv('SPACE_ID', ORIGINAL_SPACE_ID)
42
  SHARED_UI_WARNING = f'''# Attention - This Space doesn't work in this shared UI. You can duplicate and use it with a paid private T4 GPU.
43
  <center><a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/{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></center>
@@ -54,8 +54,8 @@ You can assign a GPU in the {SETTINGS} tab if you are running this on HF Spaces.
54
  </center>
55
  '''
56
 
57
- os.system("git clone https://github.com/adobe-research/custom-diffusion")
58
- sys.path.append("custom-diffusion")
59
 
60
  def show_warning(warning_text: str) -> gr.Blocks:
61
  with gr.Blocks() as demo:
 
20
  import torch
21
 
22
  from inference import InferencePipeline
23
+ # from trainer import Trainer
24
+ # from uploader import upload
25
 
26
  TITLE = '# Custom Diffusion + StableDiffusion Training UI'
27
  DESCRIPTION = '''This is a demo for [https://github.com/adobe-research/custom-diffusion](https://github.com/adobe-research/custom-diffusion).
 
37
  </center>
38
  '''
39
 
40
+ ORIGINAL_SPACE_ID = 'Ziqi/ReVersion'
41
  SPACE_ID = os.getenv('SPACE_ID', ORIGINAL_SPACE_ID)
42
  SHARED_UI_WARNING = f'''# Attention - This Space doesn't work in this shared UI. You can duplicate and use it with a paid private T4 GPU.
43
  <center><a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/{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></center>
 
54
  </center>
55
  '''
56
 
57
+ os.system("git clone https://github.com/ziqihuangg/ReVersion")
58
+ sys.path.append("ReVersion")
59
 
60
  def show_warning(warning_text: str) -> gr.Blocks:
61
  with gr.Blocks() as demo: