Spaces:
Running
on
Zero
Running
on
Zero
File size: 478 Bytes
a746d34 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# Article formatter
from dataclasses import dataclass
@dataclass
class Article:
title: str
thumbnail: str
image_files: list
content: str
hashtags: list
price: int
scheduled_time: str
is_paid: bool
def create_article(title, thumbnail, image_files, content, hashtags, price, scheduled_time, is_paid):
"""
Create an Article object
"""
return Article(title, thumbnail, image_files, content, hashtags, price, scheduled_time, is_paid) |