Downloads · 30 days
0
starscott/ghjhjj
ghjhjj is a machine learning model from starscott. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Jul 12, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 72%
From the Hugging Face model README
from transformers import pipeline
generator = pipeline('text-generation', model='gpt-2')
def generate_card_text(title, card_type): prompt = f"Créer une description et un effet pour une carte de jeu intitulée '{title}' de type '{card_type}'." result = generator(prompt, max_length=150, num_return_sequences=1) return result[0]['generated_text']
card_title = "Squelette Guerrier" card_type = "Mort-vivant" description_and_effect = generate_card_text(card_title, card_type) print(description_and_effect)