diff --git a/scripts/copy_demos.py b/scripts/copy_demos.py index e782a13a2735d..ba84b4231bead 100644 --- a/scripts/copy_demos.py +++ b/scripts/copy_demos.py @@ -69,11 +69,8 @@ def copy_all_demos(source_dir: str, dest_dir: str): {args.gradio_client_version} {args.gradio_version} pypistats==1.1.0 - plotly==5.10.0 - opencv-python==4.6.0.66 - transformers==4.21.1 - torch==1.12.1 + plotly altair vega_datasets """ - open(reqs_file_path, "w").write(textwrap.dedent(requirements)) + pathlib.Path(reqs_file_path).write_text(textwrap.dedent(requirements))