Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,15 @@ import requests
|
|
3 |
import json
|
4 |
import os
|
5 |
|
|
|
|
|
|
|
|
|
|
|
6 |
#Import Hugging Face's Transformers
|
7 |
-
import pipeline
|
8 |
# This is to log our outputs in a nicer format
|
9 |
-
import pprint
|
10 |
|
11 |
# from transformers import GPTJForCausalLM
|
12 |
# import torch
|
|
|
3 |
import json
|
4 |
import os
|
5 |
|
6 |
+
os.system(f"pip install torch torchvision pprint")
|
7 |
+
os.system(f"pip install git+https://github.com/huggingface/transformers")
|
8 |
+
#os.system(f"git clone https://github.com/camenduru/stable-diffusion-webui /home/user/app/stable-diffusion-webui")
|
9 |
+
|
10 |
+
|
11 |
#Import Hugging Face's Transformers
|
12 |
+
from transformers import pipeline
|
13 |
# This is to log our outputs in a nicer format
|
14 |
+
from pprint import pprint
|
15 |
|
16 |
# from transformers import GPTJForCausalLM
|
17 |
# import torch
|