You can check out how the Web UI looks like on HuggingFace:
This code generates a Markdown blog post with tne given title, content, and image input. It uses the Gradio library to provide a user interface for entering the required data. Double click on the app.bat file to run the Web UI after installing the packages inside the requirements.txt file.
-The generate_markdown_post() function takes three inputs: title, content, and image. It then generates a unique ID and formats the date and time. The function uses this information to generate a filename and write the Markdown content to the file. The Markdown content is then committed to Git and pushed to a remote repository. -The commit_and_push() function adds the generated file to Git, commits the changes with a message containing the unique ID, and pushes the changes to the remote repository.
The user interface is defined using Gradio. It consists of three input fields: one for the title, one for the content, and one for uploading an image. When the user submits the data, the generate_markdown_post() function is called and the output is displayed.
Overall, this code provides an easy way to generate a Markdown blog post with an image and push it to a remote repository using Git.
Last Blog Posts were written by ChatGPT for demo purposes