Spaces:
Runtime error
Runtime error
Pass paths as path objects.
Browse files
app.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
|
|
| 1 |
from techiaith.mimic import ui
|
| 2 |
|
| 3 |
model_id: str = "techiaith/llama-3-8b-instruct-ctp-cy"
|
| 4 |
-
example_question_files = [
|
| 5 |
"instructions-cy.jsonl",
|
| 6 |
"instructions-en.jsonl",
|
| 7 |
-
]
|
| 8 |
ui.main(example_questions_file=example_question_files, model_id_or_path=model_id)
|
| 9 |
|
|
|
|
| 1 |
+
from pathlib import Path
|
| 2 |
from techiaith.mimic import ui
|
| 3 |
|
| 4 |
model_id: str = "techiaith/llama-3-8b-instruct-ctp-cy"
|
| 5 |
+
example_question_files = list(map(Path, [
|
| 6 |
"instructions-cy.jsonl",
|
| 7 |
"instructions-en.jsonl",
|
| 8 |
+
]))
|
| 9 |
ui.main(example_questions_file=example_question_files, model_id_or_path=model_id)
|
| 10 |
|