Spaces:
Running
Running
numpy warnings
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import insightface
|
3 |
from insightface.app import FaceAnalysis
|
|
|
4 |
|
5 |
wellcomingMessage = """
|
6 |
<h1>Face Swapping</h1>
|
@@ -8,6 +9,7 @@ wellcomingMessage = """
|
|
8 |
<p>Happy <span style="font-size:500%;color:red;">♥</span> coding!</p>
|
9 |
"""
|
10 |
|
|
|
11 |
assert insightface.__version__>='0.7'
|
12 |
|
13 |
app = FaceAnalysis(name='buffalo_l')
|
|
|
1 |
import gradio as gr
|
2 |
import insightface
|
3 |
from insightface.app import FaceAnalysis
|
4 |
+
import numpy as np
|
5 |
|
6 |
wellcomingMessage = """
|
7 |
<h1>Face Swapping</h1>
|
|
|
9 |
<p>Happy <span style="font-size:500%;color:red;">♥</span> coding!</p>
|
10 |
"""
|
11 |
|
12 |
+
np.seterr(all="ignore")
|
13 |
assert insightface.__version__>='0.7'
|
14 |
|
15 |
app = FaceAnalysis(name='buffalo_l')
|