Spaces:
Runtime error
Runtime error
Commit
Β·
51294aa
1
Parent(s):
b3feaa3
initial commit
Browse files
gen.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
import torch
|
| 2 |
import sys
|
| 3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
tokenizer = AutoTokenizer.from_pretrained('google/gemma-2-2b-it')
|
| 6 |
|
|
|
|
| 1 |
import torch
|
| 2 |
import sys
|
| 3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
|
| 4 |
+
import json
|
| 5 |
+
import jsonschema # Import the jsonschema library
|
| 6 |
+
from jsonschema import validate # Import the validate function
|
| 7 |
|
| 8 |
tokenizer = AutoTokenizer.from_pretrained('google/gemma-2-2b-it')
|
| 9 |
|