Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,18 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
import torch
|
4 |
-
import
|
5 |
-
from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
|
6 |
from torch import autocast
|
7 |
import gradio
|
8 |
import gradio as gr
|
|
|
1 |
+
#!pip install --upgrade pip
|
2 |
+
!pip install diffusers==0.9.0
|
3 |
+
#it is still work for 0.9.0, if problem get, use below command
|
4 |
+
!pip install --upgrade diffusers transformers scipy
|
5 |
+
#!pip install transformers==4.24.0
|
6 |
+
#<--able go to no error
|
7 |
+
|
8 |
+
from tensorflow.keras.models import load_model
|
9 |
+
import cv2
|
10 |
+
import tensorflow as tf
|
11 |
+
import os
|
12 |
+
from matplotlib import pyplot as plt
|
13 |
+
import numpy as np
|
14 |
import torch
|
15 |
+
from diffusers import StableDiffusionPipeline
|
|
|
16 |
from torch import autocast
|
17 |
import gradio
|
18 |
import gradio as gr
|