Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -416,6 +416,7 @@ with column1:
|
|
416 |
changes,implementation,current=st.columns([0.01,0.9,0.01])
|
417 |
|
418 |
with implementation:
|
|
|
419 |
if bg_doc:
|
420 |
|
421 |
canvas_result=None
|
@@ -443,7 +444,7 @@ with column1:
|
|
443 |
else:
|
444 |
|
445 |
|
446 |
-
|
447 |
canvas_result = st_canvas(
|
448 |
fill_color="rgba(255, 165, 0, 0.3)", # Fixed fill color with some opacity
|
449 |
stroke_width=stroke_width,
|
@@ -451,8 +452,8 @@ with column1:
|
|
451 |
background_color=bg_color,
|
452 |
background_image=gen_image if gen_image else Image.open("/home/user/app/ALL_image_formation/image_gen.png"),
|
453 |
update_streamlit=True,
|
454 |
-
height=screen_height//2.16 if screen_height!=1180 else screen_height
|
455 |
-
width=screen_width//2.3 if screen_width!=820 else screen_width
|
456 |
drawing_mode=drawing_mode,
|
457 |
point_display_radius=point_display_radius if drawing_mode == 'point' else 0,
|
458 |
key="canvas",
|
|
|
416 |
changes,implementation,current=st.columns([0.01,0.9,0.01])
|
417 |
|
418 |
with implementation:
|
419 |
+
st.write("<br>"*5,unsafe_allow_html=True)
|
420 |
if bg_doc:
|
421 |
|
422 |
canvas_result=None
|
|
|
444 |
else:
|
445 |
|
446 |
|
447 |
+
|
448 |
canvas_result = st_canvas(
|
449 |
fill_color="rgba(255, 165, 0, 0.3)", # Fixed fill color with some opacity
|
450 |
stroke_width=stroke_width,
|
|
|
452 |
background_color=bg_color,
|
453 |
background_image=gen_image if gen_image else Image.open("/home/user/app/ALL_image_formation/image_gen.png"),
|
454 |
update_streamlit=True,
|
455 |
+
height=int(screen_height//2.16) if screen_height!=1180 else screen_height//2,
|
456 |
+
width=int(screen_width//2.3) if screen_width!=820 else screen_width//2,
|
457 |
drawing_mode=drawing_mode,
|
458 |
point_display_radius=point_display_radius if drawing_mode == 'point' else 0,
|
459 |
key="canvas",
|