Skip to content

gmlunesa/methical

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

methical

About

Do imaginary people dream of electric sheep?

/mēTHək(ə)l/

Generate a non-existent profile with methical. An AI-generated photo, names, residence and description that aren't a part of anyone that has been born on Earth (yet).

This repository contains the backend of the project. If you wish to access the front-end, please visit the Methical frontend.

Stack

NextJS NET Core Azure
  • Frontend written with Next.js
  • API written with ASP.NET Core
  • CI/CD via Github Actions
  • Deployed to Azure App Service

Machine Learning models

Model Citation How it's used in this demo
GPT-J 6B Wang et al., 2021 💬 Text generation for the bio
StyleGAN2 Karras et al., 2020 💆‍♀️ Generate faces
Stable Diffusion Rombach et al., 2022 💆‍♀️ Generate faces

Setup

The following are the steps on running the server locally.

Clone the repository.

git clone https://github.com/gmlunesa/methical-frontend.git

This projects uses App secrets to store the HuggingFace API token.

To store secrets locally via the Secret Manager tool,

dotnet user-secrets init
dotnet user-secrets set "MLPlatform:Token" "XXXXXXXXXXXXX"

When deploying to Azure, secrets will need to be stored in the Azure Key Vault.

az keyvault secret set --vault-name {KEY VAULT NAME} --name "MLPlatform--Token" --value "XXXXXXXXXXXXX"

Run the application.

dotnet run --project Methical

License

MIT 🌱 Fully open-source

Credits

  • Favicon is from the open source project Twemoji.

Made with 💫✨ by gmlunesa