Spaces:
Running
on
Zero
Running
on
Zero
# Article formatter | |
from dataclasses import 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) |