cdleong commited on
Commit
66eb77a
·
verified ·
1 Parent(s): d4c6874

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,7 +6,7 @@ import io
6
  import contextlib
7
  import requests
8
 
9
- FORBIDDEN_NAMES =["Judas",
10
  "Maher-shalal-hash-baz",
11
  "Bathsheba",
12
  "Jephthah",
@@ -45,7 +45,7 @@ FORBIDDEN_NAMES =["Judas",
45
  "Barabbas",
46
  "Sapphira",
47
  "Shur",
48
- ]
49
  def download_file(url: str, dest_path: Path):
50
  if dest_path.exists():
51
  print(f"{dest_path.name} already exists. Skipping download.")
@@ -218,7 +218,7 @@ with gr.Blocks() as demo:
218
  last_name_input = gr.Textbox(label="Last Name")
219
 
220
  with gr.Row():
221
- forbidden_names_input = gr.Textbox(label="FORBIDDEN NAMES (comma-separated)", value=FORBIDDEN_NAMES)
222
 
223
 
224
 
 
6
  import contextlib
7
  import requests
8
 
9
+ FORBIDDEN_NAMES ={"Judas",
10
  "Maher-shalal-hash-baz",
11
  "Bathsheba",
12
  "Jephthah",
 
45
  "Barabbas",
46
  "Sapphira",
47
  "Shur",
48
+ }
49
  def download_file(url: str, dest_path: Path):
50
  if dest_path.exists():
51
  print(f"{dest_path.name} already exists. Skipping download.")
 
218
  last_name_input = gr.Textbox(label="Last Name")
219
 
220
  with gr.Row():
221
+ forbidden_names_input = gr.Textbox(label="FORBIDDEN NAMES (comma-separated)", value=",".join(FORBIDDEN_NAMES))
222
 
223
 
224