ai-app-factory / src /isPythonOrGradioAppPrompt.mts
jbilcke-hf's picture
jbilcke-hf HF staff
add example for gradio
312de82
raw
history blame
201 Bytes
export function isPythonOrGradioAppPrompt(prompt: string) {
const lowerCasePrompt = prompt.toLocaleLowerCase()
return lowerCasePrompt.includes("python")
|| lowerCasePrompt.includes("gradio")
}