davidberenstein1957 HF staff commited on
Commit
888337a
·
unverified ·
2 Parent(s): 02de6f4 515cb6c

Merge pull request #23 from ftnext/proposal-pep723

Browse files

Add inline script metadata for users to launch example apps easily

examples/argilla_deployment.py CHANGED
@@ -1,4 +1,9 @@
1
- # pip install synthetic-dataset-generator
 
 
 
 
 
2
  import os
3
 
4
  from synthetic_dataset_generator import launch
 
1
+ # /// script
2
+ # requires-python = ">=3.11,<3.12"
3
+ # dependencies = [
4
+ # "synthetic-dataset-generator",
5
+ # ]
6
+ # ///
7
  import os
8
 
9
  from synthetic_dataset_generator import launch
examples/enforce_mapgie_template copy.py CHANGED
@@ -1,4 +1,9 @@
1
- # pip install synthetic-dataset-generator
 
 
 
 
 
2
  import os
3
 
4
  from synthetic_dataset_generator import launch
 
1
+ # /// script
2
+ # requires-python = ">=3.11,<3.12"
3
+ # dependencies = [
4
+ # "synthetic-dataset-generator",
5
+ # ]
6
+ # ///
7
  import os
8
 
9
  from synthetic_dataset_generator import launch
examples/ollama_local.py CHANGED
@@ -1,4 +1,9 @@
1
- # pip install synthetic-dataset-generator
 
 
 
 
 
2
  import os
3
 
4
  from synthetic_dataset_generator import launch
 
1
+ # /// script
2
+ # requires-python = ">=3.11,<3.12"
3
+ # dependencies = [
4
+ # "synthetic-dataset-generator",
5
+ # ]
6
+ # ///
7
  import os
8
 
9
  from synthetic_dataset_generator import launch
examples/openai_local.py CHANGED
@@ -1,4 +1,9 @@
1
- # pip install synthetic-dataset-generator
 
 
 
 
 
2
  import os
3
 
4
  from synthetic_dataset_generator import launch
 
1
+ # /// script
2
+ # requires-python = ">=3.11,<3.12"
3
+ # dependencies = [
4
+ # "synthetic-dataset-generator",
5
+ # ]
6
+ # ///
7
  import os
8
 
9
  from synthetic_dataset_generator import launch