Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
fix: prompt util doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Apr 10, 2023
1 parent 1351924 commit c3cd797
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/util/prompting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ use regex::{Captures, Regex};
/// and whitespace.
///
/// ```
/// use pyke_diffusers::util::prompting::cleanup_prompt;
///
/// # use pyke_diffusers::prompting::cleanup_prompt;
/// assert_eq!(
/// cleanup_prompt("(masterpiece,, best quality,:1.1)), 1girl,").as_str(),
/// "(masterpiece, best quality:1.1), 1girl"
Expand Down Expand Up @@ -46,8 +45,7 @@ pub fn cleanup_prompt<S: AsRef<str>>(prompt: S) -> String {
/// into [`cleanup_prompt`] for best results.
///
/// ```
/// use pyke_diffusers::util::prompting::combine_concepts;
///
/// # use pyke_diffusers::prompting::combine_concepts;
/// assert_eq!(
/// combine_concepts("masterpiece, best quality,,", "1girl, solo, blue hair, ").as_str(),
/// "masterpiece, best quality, 1girl, solo, blue hair"
Expand Down

0 comments on commit c3cd797

Please sign in to comment.