hysts HF Staff commited on
Commit
306753d
·
1 Parent(s): e9221f0
Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -28,7 +28,10 @@ See [this Space](https://huggingface.co/spaces/Wauplin/space_to_dataset_saver) f
28
  """
29
 
30
  scheduler = ParquetScheduler(
31
- repo_id=UPLOAD_REPO_ID, every=UPLOAD_FREQUENCY, private=not USE_PUBLIC_REPO, token=HF_TOKEN
 
 
 
32
  )
33
 
34
  client = Client("stabilityai/stable-diffusion")
@@ -89,7 +92,12 @@ with gr.Blocks(css="style.css") as demo:
89
  with gr.Group():
90
  prompt = gr.Text(show_label=False, placeholder="Prompt")
91
  gallery = gr.Gallery(
92
- show_label=False, columns=2, rows=2, height="600px", object_fit="scale-down", allow_preview=False
 
 
 
 
 
93
  )
94
  save_preference_button = gr.Button("Save preference", interactive=False)
95
 
@@ -124,4 +132,6 @@ with gr.Blocks(css="style.css") as demo:
124
  outputs=[config_path, gallery, selected_index],
125
  queue=False,
126
  )
127
- demo.queue(concurrency_count=5).launch()
 
 
 
28
  """
29
 
30
  scheduler = ParquetScheduler(
31
+ repo_id=UPLOAD_REPO_ID,
32
+ every=UPLOAD_FREQUENCY,
33
+ private=not USE_PUBLIC_REPO,
34
+ token=HF_TOKEN,
35
  )
36
 
37
  client = Client("stabilityai/stable-diffusion")
 
92
  with gr.Group():
93
  prompt = gr.Text(show_label=False, placeholder="Prompt")
94
  gallery = gr.Gallery(
95
+ show_label=False,
96
+ columns=2,
97
+ rows=2,
98
+ height="600px",
99
+ object_fit="scale-down",
100
+ allow_preview=False,
101
  )
102
  save_preference_button = gr.Button("Save preference", interactive=False)
103
 
 
132
  outputs=[config_path, gallery, selected_index],
133
  queue=False,
134
  )
135
+
136
+ if __name__ == "__main__":
137
+ demo.queue(concurrency_count=5).launch()