amisima commited on
Commit
26db791
·
verified ·
1 Parent(s): 72fcb16

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -1
app.py CHANGED
@@ -1874,7 +1874,10 @@ def _queue_status(count, path=None):
1874
 
1875
  def add_to_queue(video_path, queue, name_hint):
1876
  queue = list(queue or [])
1877
- if video_path and os.path.exists(str(video_path)):
 
 
 
1878
  queue.append(video_path)
1879
  if not queue:
1880
  return None, None, [], "Nothing to add yet — generate a video first."
@@ -1929,6 +1932,16 @@ CSS = """
1929
  font-size: 13px;
1930
  }
1931
 
 
 
 
 
 
 
 
 
 
 
1932
  .panel {
1933
  border-radius: 16px !important;
1934
  border: 1px solid var(--border-color-primary) !important;
@@ -2087,6 +2100,12 @@ with gr.Blocks(title="MiniMax-H3 - Custom lora + CivitAI, structured prompts, GP
2087
  with gr.Tab("🖼️ Images"):
2088
  # One `gr.Row`, so gradio splits the width evenly and wraps at `min_width` rather than leaving
2089
  # a hole where a hidden slot used to be.
 
 
 
 
 
 
2090
  with gr.Row():
2091
  images = [
2092
  gr.Image(
 
1874
 
1875
  def add_to_queue(video_path, queue, name_hint):
1876
  queue = list(queue or [])
1877
+ # Not twice. "Continue the scene" parks the finished clip before it generates, and the previous
1878
+ # press already parked that same clip on its way out - so without this the queue grows
1879
+ # A, B, B, C, C rather than A, B, C.
1880
+ if video_path and os.path.exists(str(video_path)) and (not queue or queue[-1] != video_path):
1881
  queue.append(video_path)
1882
  if not queue:
1883
  return None, None, [], "Nothing to add yet — generate a video first."
 
1932
  font-size: 13px;
1933
  }
1934
 
1935
+ .consent-note {
1936
+ border-radius: 12px;
1937
+ padding: 8px 12px;
1938
+ margin-bottom: 10px;
1939
+ background: rgba(239, 68, 68, .08);
1940
+ border: 1px solid rgba(239, 68, 68, .30);
1941
+ font-size: 12.5px;
1942
+ opacity: .9;
1943
+ }
1944
+
1945
  .panel {
1946
  border-radius: 16px !important;
1947
  border: 1px solid var(--border-color-primary) !important;
 
2100
  with gr.Tab("🖼️ Images"):
2101
  # One `gr.Row`, so gradio splits the width evenly and wraps at `min_width` rather than leaving
2102
  # a hole where a hidden slot used to be.
2103
+ gr.Markdown(
2104
+ "Upload only photographs of yourself, or of people who have agreed to this. Sexual "
2105
+ "imagery of a real person made without their consent breaks Hugging Face's "
2106
+ "content policy and is not welcome here.",
2107
+ elem_classes="consent-note",
2108
+ )
2109
  with gr.Row():
2110
  images = [
2111
  gr.Image(