Fung804 commited on
Commit
dba19eb
β€’
1 Parent(s): b9492b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -4
app.py CHANGED
@@ -1,8 +1,18 @@
1
- import random
2
- import re
 
 
 
 
 
 
 
 
 
 
 
3
  import torch
4
- import requests
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