Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -4
src/streamlit_app.py
CHANGED
|
@@ -379,8 +379,7 @@ with st.container():
|
|
| 379 |
|
| 380 |
if uploaded_file is not None:
|
| 381 |
img = Image.open(uploaded_file).convert("RGB")
|
| 382 |
-
|
| 383 |
-
|
| 384 |
l_tensor, A_true, B_true = prepare_test_image(img, dim=150)
|
| 385 |
|
| 386 |
ab_pred = inference(test_model, l_tensor)
|
|
@@ -408,10 +407,10 @@ if uploaded_file is not None:
|
|
| 408 |
col1, col2 = st.columns(2)
|
| 409 |
with col1:
|
| 410 |
st.markdown("**Girdi (Grayscale)**")
|
| 411 |
-
st.image(img
|
| 412 |
|
| 413 |
with col2:
|
| 414 |
st.markdown("**Model Çıkışı (Renkli)**")
|
| 415 |
-
st.image(np.array(new_image2)
|
| 416 |
|
| 417 |
st.success("Tamamlandı!")
|
|
|
|
| 379 |
|
| 380 |
if uploaded_file is not None:
|
| 381 |
img = Image.open(uploaded_file).convert("RGB")
|
| 382 |
+
|
|
|
|
| 383 |
l_tensor, A_true, B_true = prepare_test_image(img, dim=150)
|
| 384 |
|
| 385 |
ab_pred = inference(test_model, l_tensor)
|
|
|
|
| 407 |
col1, col2 = st.columns(2)
|
| 408 |
with col1:
|
| 409 |
st.markdown("**Girdi (Grayscale)**")
|
| 410 |
+
st.image(img)
|
| 411 |
|
| 412 |
with col2:
|
| 413 |
st.markdown("**Model Çıkışı (Renkli)**")
|
| 414 |
+
st.image(np.array(new_image2))
|
| 415 |
|
| 416 |
st.success("Tamamlandı!")
|