Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,49 +42,22 @@ def gradio_pls():
|
|
42 |
Upload a photo and click on submit to see the 12 styles applied to your photo. \n
|
43 |
Keep in mind that for compatibility reasons your photo is cropped before the neural net applied the different styles.
|
44 |
<center>
|
45 |
-
<table
|
46 |
<tr>
|
47 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/a_muse_picasso.jpg" class="image_responsive" width=300px
|
48 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/britto.jpg" class="image_responsive" width=300px
|
49 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/cat.jpg" class="image_responsive" width=300px
|
50 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/cubist.jpg" class="image_responsive" width=300px
|
51 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/fractal.jpg" class="image_responsive" width=300px
|
52 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/horse.jpg" class="image_responsive" width=300px
|
53 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/monet.jpg" class="image_responsive" width=300px
|
54 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/sketch.jpg" class="image_responsive" width=300px
|
55 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/starry_night.jpg" class="image_responsive" width=300px
|
56 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/texture.jpg" class="image_responsive" width=300px
|
57 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/tsunami.jpg" class="image_responsive" width=300px
|
58 |
-
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/vibrant.jpg" class="image_responsive" width=300px
|
59 |
</tr>
|
60 |
</table>
|
61 |
-
|
62 |
-
<style type="text/css">
|
63 |
-
#lampions
|
64 |
-
{
|
65 |
-
width: 100%;
|
66 |
-
height: auto;
|
67 |
-
}
|
68 |
-
.lampion
|
69 |
-
{
|
70 |
-
float:left;
|
71 |
-
margin:0 5px; /* 5px a droite et a gauche de l image */
|
72 |
-
padding:0;
|
73 |
-
width: 100px;
|
74 |
-
height: auto;
|
75 |
-
}
|
76 |
-
</style>
|
77 |
-
<table>
|
78 |
-
<tr>
|
79 |
-
<div id="lampions">
|
80 |
-
<img class="lampion" src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/vibrant.jpg" alt="" />
|
81 |
-
<img class="lampion" src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/vibrant.jpg" alt="" />
|
82 |
-
<img class="lampion" src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/vibrant.jpg" alt="" />
|
83 |
-
<img class="lampion" src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/vibrant.jpg" alt="" />
|
84 |
-
</div>
|
85 |
-
</tr>
|
86 |
-
</table>
|
87 |
-
</p>
|
88 |
"""
|
89 |
iface = gr.Interface(
|
90 |
predict_gradio,
|
|
|
42 |
Upload a photo and click on submit to see the 12 styles applied to your photo. \n
|
43 |
Keep in mind that for compatibility reasons your photo is cropped before the neural net applied the different styles.
|
44 |
<center>
|
45 |
+
<table cellspacing=0>
|
46 |
<tr>
|
47 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/a_muse_picasso.jpg" class="image_responsive" width=300px></td>
|
48 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/britto.jpg" class="image_responsive" width=300px></td>
|
49 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/cat.jpg" class="image_responsive" width=300px></td>
|
50 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/cubist.jpg" class="image_responsive" width=300px></td>
|
51 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/fractal.jpg" class="image_responsive" width=300px></td>
|
52 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/horse.jpg" class="image_responsive" width=300px></td>
|
53 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/monet.jpg" class="image_responsive" width=300px></td>
|
54 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/sketch.jpg" class="image_responsive" width=300px></td>
|
55 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/starry_night.jpg" class="image_responsive" width=300px></td>
|
56 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/texture.jpg" class="image_responsive" width=300px></td>
|
57 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/tsunami.jpg" class="image_responsive" width=300px></td>
|
58 |
+
<td><img src="https://raw.githubusercontent.com/dabidou025/Live-Style-Transfer/main/styles/vibrant.jpg" class="image_responsive" width=300px></td>
|
59 |
</tr>
|
60 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
"""
|
62 |
iface = gr.Interface(
|
63 |
predict_gradio,
|