Spaces:
Sleeping
Sleeping
diamantrsd
commited on
Commit
•
ed89481
1
Parent(s):
055e2d8
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def predict_image(img_path, keyword=""):
|
|
63 |
return class_label, copywriting
|
64 |
|
65 |
# Function to generate copywriting
|
66 |
-
def generate_copywriting(class_label):
|
67 |
# Generate prompt based on class label
|
68 |
prompt = f"{keyword.lower()}, {class_label.lower()}" if keyword else f"{class_label.lower()}"
|
69 |
|
|
|
63 |
return class_label, copywriting
|
64 |
|
65 |
# Function to generate copywriting
|
66 |
+
def generate_copywriting(class_label,keyword):
|
67 |
# Generate prompt based on class label
|
68 |
prompt = f"{keyword.lower()}, {class_label.lower()}" if keyword else f"{class_label.lower()}"
|
69 |
|