pip install polars
Browse files
    	
        README.md
    CHANGED
    
    | @@ -1,4 +1,15 @@ | |
| 1 | 
            -
            ---
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 2 | 
             
            license: cc0-1.0
         | 
| 3 | 
             
            tags:
         | 
| 4 | 
             
            - ChatGPT
         | 
|  | |
| 1 | 
            +
            ---pip install polarsimport polars as pl
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            df = pl.read_csv('hf://datasets/fka/awesome-chatgpt-prompts/prompts.csv')
         | 
| 4 | 
            +
            from diffusers import DiffusionPipeline
         | 
| 5 | 
            +
            from diffusers.utils import load_image
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            pipe = DiffusionPipeline.from_pretrained("InstantX/Qwen-Image-ControlNet-Inpainting")
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            prompt = "Turn this cat into a dog"
         | 
| 10 | 
            +
            input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            image = pipe(image=input_image, prompt=prompt).images[0]
         | 
| 13 | 
             
            license: cc0-1.0
         | 
| 14 | 
             
            tags:
         | 
| 15 | 
             
            - ChatGPT
         | 

