dominguezdaniel commited on
Commit
c7a7c62
·
verified ·
1 Parent(s): ce1c250

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,8 +5,8 @@ from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
5
  classifier = pipeline("image-classification", model="google/vit-base-patch16-224")
6
 
7
  # Initialize the tokenizer and model for the generative text (GPT-like model)
8
- tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1") # Example model, replace with your choice
9
- model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1")
10
 
11
  def generate_tweet(label):
12
  # Generate a promotional tweet using a GPT-like model
 
5
  classifier = pipeline("image-classification", model="google/vit-base-patch16-224")
6
 
7
  # Initialize the tokenizer and model for the generative text (GPT-like model)
8
+ tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-cnn") # Example model, replace with your choice
9
+ model = AutoModelForCausalLM.from_pretrained("facebook/bart-large-cnn")
10
 
11
  def generate_tweet(label):
12
  # Generate a promotional tweet using a GPT-like model