Spaces:
Runtime error
Runtime error
fix for log
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ if you do not have money (just like me **(┬┬﹏┬┬)** ) you can always :
|
|
24 |
* **run the code in your PC** if you have a good GPU a good internet connection (to download the ai model only a 1 time thing)
|
25 |
* **run the model in the cloud** (colab, and kaggle are good alternatives and they have a pretty good internet connection )
|
26 |
### minimalistic code to run a ckpt model
|
27 |
-
* enable GPU (click runtime
|
28 |
* install the following libraries
|
29 |
```
|
30 |
!pip install -q diffusers gradio omegaconf
|
@@ -57,6 +57,7 @@ except :
|
|
57 |
|
58 |
|
59 |
def text2img(positive_prompt,negative_prompt):
|
|
|
60 |
if log == "no GPU available":
|
61 |
image = None
|
62 |
return log,image
|
|
|
24 |
* **run the code in your PC** if you have a good GPU a good internet connection (to download the ai model only a 1 time thing)
|
25 |
* **run the model in the cloud** (colab, and kaggle are good alternatives and they have a pretty good internet connection )
|
26 |
### minimalistic code to run a ckpt model
|
27 |
+
* enable GPU (click runtime then change runtime type)
|
28 |
* install the following libraries
|
29 |
```
|
30 |
!pip install -q diffusers gradio omegaconf
|
|
|
57 |
|
58 |
|
59 |
def text2img(positive_prompt,negative_prompt):
|
60 |
+
global log
|
61 |
if log == "no GPU available":
|
62 |
image = None
|
63 |
return log,image
|