Spaces:
Runtime error
Runtime error
Commit
Β·
9b94fdb
1
Parent(s):
ab34078
change argilla and magpie examples
Browse files
examples/argilla_deployment.py
CHANGED
@@ -3,7 +3,8 @@ import os
|
|
3 |
|
4 |
from synthetic_dataset_generator.app import demo
|
5 |
|
6 |
-
|
7 |
-
os.environ["
|
|
|
8 |
|
9 |
demo.launch()
|
|
|
3 |
|
4 |
from synthetic_dataset_generator.app import demo
|
5 |
|
6 |
+
# Follow https://docs.argilla.io/latest/getting_started/quickstart/ to get your Argilla API key and URL
|
7 |
+
os.environ["ARGILLA_API_URL"] = "https://[your-owner-name]-[your_space_name].hf.space"
|
8 |
+
os.environ["ARGILLA_API_KEY"] = "my_api_key"
|
9 |
|
10 |
demo.launch()
|
examples/enforce_mapgie_template copy.py
CHANGED
@@ -3,8 +3,7 @@ import os
|
|
3 |
|
4 |
from synthetic_dataset_generator.app import demo
|
5 |
|
6 |
-
|
7 |
-
os.environ["
|
8 |
-
os.environ["ARGILLA_API_KEY"] = "my_api_key"
|
9 |
|
10 |
demo.launch()
|
|
|
3 |
|
4 |
from synthetic_dataset_generator.app import demo
|
5 |
|
6 |
+
os.environ["MAGPIE_PRE_QUERY_TEMPLATE"] = "llama3"
|
7 |
+
os.environ["MODEL"] = "my_custom_model_trained_on_llama3"
|
|
|
8 |
|
9 |
demo.launch()
|