jayyap commited on
Commit
289b380
·
1 Parent(s): dd3f618

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +5 -0
handler.py CHANGED
@@ -1,4 +1,9 @@
1
  from diffusers import DiffusionPipeline
 
 
 
 
 
2
 
3
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
4
  if device.type != 'cuda':
 
1
  from diffusers import DiffusionPipeline
2
+ import torch
3
+ from io import BytesIO
4
+ import requests
5
+ from PIL import Image
6
+ import base64
7
 
8
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
9
  if device.type != 'cuda':