CoolFace
Apppublic

nftshawn/hackaithon_generate_email_v2

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
0likes
App README

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

This was created for a HackAIthon workshop during SF AI week on May 16 2023. OpenAI API key will be deprecated after the workshop so please duplicate and use your own API key in the Repository Secrets section.

Prompt used for code generation seeding of app.py (ChatGPT Turbo): "Share Streamlit code that lets users input an email text (include a submit button labeled "Generate response") and output a response to that email based on OpenAI davinci-003 model with a prompt that instructs the model that the user is sharing an email, the user has very little time in their schedule, but wants to be polite in their response, and is expecting a response output, and format the code so it can be uploaded to a HuggingFace space and be run with a user interface for input and display of that output. Include a reference to a Streamlit Secrets for the OpenAI API key, make sure to remove any repeated parameters in the API call and include a max token length of 1024."