diamantrsd commited on
Commit
5547ccf
1 Parent(s): ed89481

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,8 +16,8 @@ except Exception as e:
16
  print(f"An error occurred: {e}")
17
 
18
  # Load GPT-2 tokenizer and model
19
- tokenizer = GPT2Tokenizer.from_pretrained("diamantrsd/copywriting-otomatis-gpt2")
20
- gpt2_model = GPT2LMHeadModel.from_pretrained("diamantrsd/copywriting-otomatis-gpt2")
21
 
22
  def predict_image(img_path, keyword=""):
23
  if img_path is None:
 
16
  print(f"An error occurred: {e}")
17
 
18
  # Load GPT-2 tokenizer and model
19
+ tokenizer = GPT2Tokenizer.from_pretrained("diamantrsd/copywriting-otomatis")
20
+ gpt2_model = GPT2LMHeadModel.from_pretrained("diamantrsd/copywriting-otomatis")
21
 
22
  def predict_image(img_path, keyword=""):
23
  if img_path is None: