drakosfire commited on
Commit
b176760
1 Parent(s): 253438b

added gr.set_static_paths

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -298,10 +298,12 @@ with gr.Blocks() as demo:
298
  item_quote_output
299
  ],
300
  outputs = generate_gallery )
 
 
301
 
302
 
303
  if __name__ == "__main__":
304
- demo.launch(allowed_paths = ["/home/user/app/card_parts"])
305
 
306
 
307
 
 
298
  item_quote_output
299
  ],
300
  outputs = generate_gallery )
301
+ list_of_static_dir = ["card_parts/", " fonts/"]
302
+ gr.set_static_paths(paths=[list_of_static_dir])
303
 
304
 
305
  if __name__ == "__main__":
306
+ demo.launch()
307
 
308
 
309