Spaces:
Paused
Paused
File size: 305 Bytes
0f1d44a | 1 2 3 4 5 6 7 8 9 10 11 | """Local open-source answer generation on the Space's ZeroGPU allocation."""
import spaces
from .generation import load_model, run_generation
tokenizer, model = load_model("cuda")
@spaces.GPU(duration=45)
def generate_json(system, payload):
return run_generation(tokenizer, model, system, payload)
|