Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -1,3 +1,4 @@ 
     | 
|
| 
         | 
|
| 1 | 
         
             
            import os
         
     | 
| 2 | 
         
             
            os.system("pip uninstall torchvision -y")
         
     | 
| 3 | 
         
             
            os.system("pip install torchvision --force-reinstall --no-cache-dir")
         
     | 
| 
         @@ -6,7 +7,6 @@ import torch 
     | 
|
| 6 | 
         
             
            from diffusers import AutoPipelineForText2Image
         
     | 
| 7 | 
         
             
            import gradio as gr
         
     | 
| 8 | 
         
             
            from PIL import Image
         
     | 
| 9 | 
         
            -
            import spaces
         
     | 
| 10 | 
         | 
| 11 | 
         
             
            pipe = AutoPipelineForText2Image.from_pretrained(
         
     | 
| 12 | 
         
             
                "ostris/Flex.2-preview",
         
     | 
| 
         | 
|
| 1 | 
         
            +
            import spaces
         
     | 
| 2 | 
         
             
            import os
         
     | 
| 3 | 
         
             
            os.system("pip uninstall torchvision -y")
         
     | 
| 4 | 
         
             
            os.system("pip install torchvision --force-reinstall --no-cache-dir")
         
     | 
| 
         | 
|
| 7 | 
         
             
            from diffusers import AutoPipelineForText2Image
         
     | 
| 8 | 
         
             
            import gradio as gr
         
     | 
| 9 | 
         
             
            from PIL import Image
         
     | 
| 
         | 
|
| 10 | 
         | 
| 11 | 
         
             
            pipe = AutoPipelineForText2Image.from_pretrained(
         
     | 
| 12 | 
         
             
                "ostris/Flex.2-preview",
         
     |