Spaces:
Running
Running
Commit
•
5547ccf
1
Parent(s):
ed89481
Update app.py
Browse files
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
|
20 |
-
gpt2_model = GPT2LMHeadModel.from_pretrained("diamantrsd/copywriting-otomatis
|
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:
|