Update myapp.py
Browse files
myapp.py
CHANGED
|
@@ -1,12 +1,10 @@
|
|
| 1 |
-
from transformers.utils import move_cache
|
| 2 |
from flask import Flask, request, jsonify
|
| 3 |
from diffusers import DiffusionPipeline
|
| 4 |
import torch
|
| 5 |
from PIL import Image
|
| 6 |
import os
|
| 7 |
|
| 8 |
-
|
| 9 |
-
move_cache()
|
| 10 |
|
| 11 |
# Initialize the Flask app
|
| 12 |
myapp = Flask(__name__)
|
|
|
|
|
|
|
| 1 |
from flask import Flask, request, jsonify
|
| 2 |
from diffusers import DiffusionPipeline
|
| 3 |
import torch
|
| 4 |
from PIL import Image
|
| 5 |
import os
|
| 6 |
|
| 7 |
+
|
|
|
|
| 8 |
|
| 9 |
# Initialize the Flask app
|
| 10 |
myapp = Flask(__name__)
|