Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -352,7 +352,7 @@ with gr.Blocks(css=css) as demo:
|
|
352 |
processed_zip = gr.File(label="Output Archive")
|
353 |
result = gr.Model3D(label="3D Mesh", clear_color=[0.5, 0.5, 0.5, 0.0], camera_position=[0, 90, 0])
|
354 |
svg_in = gr.HTML(value="""
|
355 |
-
<svg id='svg_in' height='128' width='256' viewBox='0 0 256 128' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='touch-action:none;' onload
|
356 |
try{
|
357 |
var pts = '';
|
358 |
for (var i=0; i<256; i++) {
|
@@ -370,11 +370,11 @@ with gr.Blocks(css=css) as demo:
|
|
370 |
document.getElementsByTagName('input[type=text]')[1].value = document.getElementById('pl').getAttribute('points');
|
371 |
}
|
372 |
}catch(e){alert(e);}
|
373 |
-
|
374 |
<defs>
|
375 |
-
<linearGradient id=
|
376 |
-
<stop offset=
|
377 |
-
<stop offset=
|
378 |
</linearGradient>
|
379 |
</defs>
|
380 |
<polyline id='pl' points='0,0 0,127 255,127 255,0' stroke='url(#lg)' fill='none' stroke-width='3'/>
|
|
|
352 |
processed_zip = gr.File(label="Output Archive")
|
353 |
result = gr.Model3D(label="3D Mesh", clear_color=[0.5, 0.5, 0.5, 0.0], camera_position=[0, 90, 0])
|
354 |
svg_in = gr.HTML(value="""
|
355 |
+
<svg id='svg_in' height='128' width='256' viewBox='0 0 256 128' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='touch-action:none;' onload=\"
|
356 |
try{
|
357 |
var pts = '';
|
358 |
for (var i=0; i<256; i++) {
|
|
|
370 |
document.getElementsByTagName('input[type=text]')[1].value = document.getElementById('pl').getAttribute('points');
|
371 |
}
|
372 |
}catch(e){alert(e);}
|
373 |
+
\">
|
374 |
<defs>
|
375 |
+
<linearGradient id='lg' x1='0%' x2='100%' y1='0%' y2='0%'>
|
376 |
+
<stop offset='0%' stop-color='white'/>
|
377 |
+
<stop offset='100%' stop-color='black'/>
|
378 |
</linearGradient>
|
379 |
</defs>
|
380 |
<polyline id='pl' points='0,0 0,127 255,127 255,0' stroke='url(#lg)' fill='none' stroke-width='3'/>
|