Update app.py
Browse files"라이브러리 추가"
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
|
|
1 |
import streamlit as st
|
|
|
|
|
|
|
2 |
import torch
|
3 |
from diffusers import StableDiffusionPipeline
|
4 |
-
from PIL import Image
|
5 |
-
import numpy as np
|
6 |
import io
|
7 |
-
import requests
|
8 |
|
9 |
# Function to apply deepfake-like transformation using Stable Diffusion
|
10 |
def apply_deepfake(image):
|
|
|
1 |
+
import requests
|
2 |
import streamlit as st
|
3 |
+
import cv2
|
4 |
+
import numpy as np
|
5 |
+
from PIL import Image
|
6 |
import torch
|
7 |
from diffusers import StableDiffusionPipeline
|
|
|
|
|
8 |
import io
|
|
|
9 |
|
10 |
# Function to apply deepfake-like transformation using Stable Diffusion
|
11 |
def apply_deepfake(image):
|