Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building an Image-to-Story App with Vue.js, Hugging Face, and Strapi #1382

Open
1 task done
GeekEdmund opened this issue Apr 27, 2024 · 5 comments
Open
1 task done
Assignees
Labels
Beginner Expertise In progress Tutorial being created

Comments

@GeekEdmund
Copy link

GeekEdmund commented Apr 27, 2024

What is your article idea?

The idea is to write an article that will cover the process of building an image-to-story application using Vue.js for the frontend, Hugging Face for image processing and text generation, and Strapi for backend management. You'll learn how to set up the project, connect the frontend to Strapi, and ultimately create an application that utilizes AI, powered by Hugging Face models, to analyze images and generate engaging content based on their content. Whether it's creating narrative stories, scripts inspired by images, or generating recipes from food images, the AI serves as a creative partner, transforming visual inputs into captivating textual outputs then to audio.

What are the objectives of your article?

I. Introduction

  • Capture the reader's interest: Briefly explain image-to-story generation and its potential applications.
  • Introduce the project: Highlight the app's functionalities and the technologies used (Vue.js, Hugging Face, Strapi).
  • Target audience: Who will benefit from this guide (developers, creatives, AI enthusiasts).

II. Prerequisites

  • List the necessary tools and technologies:
  • Node.js and npm (or yarn)
  • Basic understanding of Vue.js
  • Familiarity with Hugging Face concepts

III. Project Setup

  • Create a new Vue.js project.
  • Install required dependencies:
  • Vue-router (for potential routing needs)
  • Axios (or similar library for API calls)
  • Specific Hugging Face transformers library (based on chosen model)

IV. Vue.js Component Structure

  • App.vue: Main application component, manages overall structure and state.
  • ImageUpload.vue: Handles image selection and upload functionality.
  • StoryDisplay.vue: Displays the generated story text.
  • services/imageToStory.js: Communicates with Strapi backend (if used) and processes image data (optional preprocessing).

V. Image Processing and Story Generation

  • Explore pre-trained image-to-text models available in Hugging Face.
  • Integrate a chosen model: Load the model, prepare image data for input.
  • Generate story text using the model's inference capabilities.
  • Generate an audio from the text to bring about more story telling experience.

VI. Strapi Backend Integration (Optional)

  • Set up a Strapi project for potential data storage (e.g., user preferences).
  • Define an API endpoint to receive image data from the Vue.js frontend.
  • Implement logic within the Strapi endpoint to handle image processing (if needed) and call the Hugging Face model.
  • Send the generated story text back to the frontend as a response.

VII. User Interface and Interactivity

  • Design the Vue.js UI for image upload, story display, and user interaction.
  • Implement functionality to handle user actions:
  • Uploading an image
  • Displaying the generated story
  • Play the audio of the generated story

IX. Conclusion

  • Recap the key takeaways and the power of combining these technologies.
  • Provide link to code repository.

What is your expertise as a developer or writer?

Advance

What type of post is this?

Tutorial

Terms & Conditions

  • I have read the Write for the Community program guidelines.
@Theodore-Kelechukwu-Onyejiaku
Copy link
Collaborator

Hi @GeekEdmund ,

This looks good. Thank you! 💪

For clarity, can you explain what our AI does in the end of this tutorial?

@GeekEdmund
Copy link
Author

@Theodore-Kelechukwu-Onyejiaku , The main agenda of the app is to utilize AI, powered by Hugging Face models, to analyze images and generate engaging content based on their content. Whether it's creating narrative stories, scripts inspired by images, or generating recipes from food images, the AI serves as a creative partner, transforming visual inputs into captivating textual outputs then to audio.

@GeekEdmund
Copy link
Author

Hi @Theodore-Kelechukwu-Onyejiaku , I have refined the main idea, bringing about clarity on the end goal.

@Theodore-Kelechukwu-Onyejiaku
Copy link
Collaborator

This is great! Please proceed. Thank you.

Depending on the quality of your content, we might later have this as an intermediate tutorial.

@GeekEdmund
Copy link
Author

This is great! Please proceed. Thank you.

Depending on the quality of your content, we might later have this as an intermediate tutorial.

okay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beginner Expertise In progress Tutorial being created
Projects
None yet
Development

No branches or pull requests

2 participants