Skip to content

koyeb/example-groq-translation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Koyeb Serverless Platform

Deploy a Groq translation application on Koyeb
Learn more about Koyeb · Explore the documentation · Discover our tutorials

About Koyeb and the Groq translation application example

Koyeb is a developer-friendly serverless platform to deploy apps globally. No-ops, servers, or infrastructure management required.

This repository contains a language translation application built using Groq, speech-to-text (STT), and text-to-speech (TTS) technologies. It allows the user to record audio in English, transcribe it, translate it into a different language, and then play it back in audio in the new language.

This example application is designed to show how real-time language translation applications using Groq can be deployed on Koyeb.

Getting Started

Follow the steps below to deploy and run the Groq language translation application on your Koyeb account.

Requirements

You need:

  • a Koyeb account to successfully deploy and run this application. If you don't already have an account, you can sign-up for free here.
  • a Groq API key so our application can leverage the platform's AI models.

Deploy using the Koyeb button

The fastest way to deploy the Groq language translation application is to click the Deploy to Koyeb button below.

Deploy to Koyeb

Clicking on this button brings you to the Koyeb App creation page with everything pre-set to launch this application. Modify the value of the GROQ_API_KEY environment value with your own key and launch the application.

To modify this application example, you will need to fork this repository. Checkout the fork and deploy instructions.

Fork and deploy to Koyeb

If you want to customize and enhance this application, you need to fork this repository.

If you used the Deploy to Koyeb button, you can simply link your service to your forked repository to be able to push changes. Alternatively, you can manually create the application as described below.

On the Koyeb Control Panel, on the Overview tab, click the Create Web Service button to begin.

  1. Select GitHub as the deployment method.
  2. In the repositories list, select the repository you just forked.
  3. In the Builder section, enable the override toggle associated with the Run command and enter streamlit run main.py in the field.
  4. Under Environment variables, click Add variable to add your Groq API key as GROQ_API_KEY.
  5. Under Exposing your service, change the port selection to port 8501, as used by Streamlit.
  6. In the Instance section, select an Instance of type Small or larger.
  7. Under App and Service names, rename your App to whatever you'd like. For example, groq-translation. Note the name will be used to create the public URL for this app. You can add a custom domain later if you'd like.
  8. Finally, click Deploy.

You will be taken to the deployment page where you can follow the build of your application. Once the build is completed, your application is being deployed and you will be able to access it via <YOUR_APP_NAME>-<YOUR_ORG_NAME>.koyeb.app.

Contributing

If you have any questions, ideas or suggestions regarding this application sample, feel free to open an issue or fork this repository and open a pull request.

Contact

Koyeb - @gokoyeb - Slack

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages