Spaces:
Runtime error
Runtime error
Merge pull request #23 from ftnext/proposal-pep723
Browse filesAdd inline script metadata for users to launch example apps easily
examples/argilla_deployment.py
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|