dominguezdaniel commited on
Commit
1959014
1 Parent(s): 19dc487

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ model = BartForConditionalGeneration.from_pretrained(model_name)
11
 
12
  def generate_tweet(label):
13
  # Craft a prompt that naturally encourages engaging and relevant tweet content
14
- prompt = f"wite a tweet about {label}"
15
 
16
  inputs = tokenizer.encode(prompt, return_tensors="pt")
17
  outputs = model.generate(inputs, max_length=280, num_return_sequences=1, no_repeat_ngram_size=2)
 
11
 
12
  def generate_tweet(label):
13
  # Craft a prompt that naturally encourages engaging and relevant tweet content
14
+ prompt = f"write a tweet about {label}"
15
 
16
  inputs = tokenizer.encode(prompt, return_tensors="pt")
17
  outputs = model.generate(inputs, max_length=280, num_return_sequences=1, no_repeat_ngram_size=2)