buildspace / ai-avatar-starter

15 stars 331 forks source link

Question about replacing unique subject identifier #3

Open harrybaines opened 1 year ago

harrybaines commented 1 year ago

I was following the guidance here, and the suggestion was to replace the unique subject identifier before sending the prompt to the Hugging Face API.

I was slightly confused about what this was for. For example if we do the following:

'a photo of abraza'.replace(/raza/gi, 'abraza')

that would give:

'a photo of ababraza'

and if 'abraza' wasn't provided in the initial prompt, 'abraza' wouldn't be present in the prompt before POSTing to the API. Is this correct?

AlmostEfficient commented 1 year ago

Oops, that's my bad, it's supposed to replace mentions of "raza" with "abraza", gonna fix that soon