omer11a commited on
Commit
4159aad
·
1 Parent(s): 3d7f2bc

Added placeholders

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -20,6 +20,9 @@ WHITE = 255
20
  COLORS = ["red", "blue", "green", "orange", "purple", "turquoise", "olive"]
21
 
22
  PROMPT1 = "a ginger kitten and a gray puppy in a yard"
 
 
 
23
  PROMPT2 = "3 D Pixar animation of a cute unicorn and a pink hedgehog and a nerdy owl traveling in a magical forest"
24
  PROMPT3 = "science fiction movie poster with an astronaut and a robot and a green alien and a spaceship"
25
  PROMPT4 = "a realistic photo of a highway with a semi trailer and a concrete mixer and a helicopter"
@@ -325,18 +328,22 @@ def main():
325
 
326
  prompt = gr.Textbox(
327
  label="Text prompt",
 
328
  )
329
 
330
  subject_token_indices = gr.Textbox(
331
  label="The token indices of each subject (separate indices for the same subject with commas, and for different subjects with semicolons)",
 
332
  )
333
 
334
  filter_token_indices = gr.Textbox(
335
  label="Optional: The token indices to filter, i.e. conjunctions, numbers, postional relations, etc. (if left empty, this will be automatically inferred)",
 
336
  )
337
 
338
  num_tokens = gr.Textbox(
339
  label="Optional: The number of tokens in the prompt (We use this to verify your input, as sometimes rare words are split into more than one token)",
 
340
  )
341
 
342
  with gr.Row():
@@ -400,7 +407,7 @@ def main():
400
  gr.Examples(
401
  examples=[
402
  [
403
- PROMPT1, "2,3;6,7", "1,4,5,8,9", "10",
404
  15, 10, 15, 3, 1, 1,
405
  7.5, 1, 5, 0.2, 8,
406
  12,
 
20
  COLORS = ["red", "blue", "green", "orange", "purple", "turquoise", "olive"]
21
 
22
  PROMPT1 = "a ginger kitten and a gray puppy in a yard"
23
+ SUBJECT_TOKEN_INDICES1 = "2,3;6,7"
24
+ FILTER_TOKEN_INDICES1 = "1,4,5,8,9"
25
+ NUM_TOKENS1 = "10"
26
  PROMPT2 = "3 D Pixar animation of a cute unicorn and a pink hedgehog and a nerdy owl traveling in a magical forest"
27
  PROMPT3 = "science fiction movie poster with an astronaut and a robot and a green alien and a spaceship"
28
  PROMPT4 = "a realistic photo of a highway with a semi trailer and a concrete mixer and a helicopter"
 
328
 
329
  prompt = gr.Textbox(
330
  label="Text prompt",
331
+ placeholder=PROMPT1,
332
  )
333
 
334
  subject_token_indices = gr.Textbox(
335
  label="The token indices of each subject (separate indices for the same subject with commas, and for different subjects with semicolons)",
336
+ placeholder=SUBJECT_TOKEN_INDICES1,
337
  )
338
 
339
  filter_token_indices = gr.Textbox(
340
  label="Optional: The token indices to filter, i.e. conjunctions, numbers, postional relations, etc. (if left empty, this will be automatically inferred)",
341
+ placeholder=FILTER_TOKEN_INDICES1,
342
  )
343
 
344
  num_tokens = gr.Textbox(
345
  label="Optional: The number of tokens in the prompt (We use this to verify your input, as sometimes rare words are split into more than one token)",
346
+ placeholder=NUM_TOKENS1,
347
  )
348
 
349
  with gr.Row():
 
407
  gr.Examples(
408
  examples=[
409
  [
410
+ PROMPT1, SUBJECT_TOKEN_INDICES1, FILTER_TOKEN_INDICES1, NUM_TOKENS1,
411
  15, 10, 15, 3, 1, 1,
412
  7.5, 1, 5, 0.2, 8,
413
  12,