We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96250ca commit 15983c5Copy full SHA for 15983c5
packages/tasks/src/model-libraries-snippets.ts
@@ -74,7 +74,10 @@ function get_base_diffusers_model(model: ModelData): string {
74
}
75
76
function get_prompt_from_diffusers_model(model: ModelData): string | undefined {
77
- return (model.widgetData?.[0] as WidgetExampleTextInput).text ?? model.cardData?.instance_prompt;
+ const prompt = (model.widgetData?.[0] as WidgetExampleTextInput).text ?? model.cardData?.instance_prompt;
78
+ if(prompt){
79
+ return escapeQuotes(prompt);
80
+ }
81
82
83
export const bertopic = (model: ModelData): string[] => [
0 commit comments