Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,6 +44,23 @@ def display_diff(diff):
|
|
| 44 |
|
| 45 |
return left_html, right_html, diff_found
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
st.title("Model Structure Comparison Tool")
|
| 48 |
model_id1 = st.text_input("Enter the first HuggingFace Model ID")
|
| 49 |
model_id2 = st.text_input("Enter the second HuggingFace Model ID")
|
|
@@ -68,20 +85,3 @@ if model_id1 and model_id2:
|
|
| 68 |
with col2:
|
| 69 |
st.write("### Model 2")
|
| 70 |
st.markdown(right_html, unsafe_allow_html=True)
|
| 71 |
-
|
| 72 |
-
# Apply custom CSS for wider layout
|
| 73 |
-
st.markdown(
|
| 74 |
-
"""
|
| 75 |
-
<style>
|
| 76 |
-
.reportview-container .main .block-container {
|
| 77 |
-
max-width: 90%;
|
| 78 |
-
padding-left: 5%;
|
| 79 |
-
padding-right: 5%;
|
| 80 |
-
}
|
| 81 |
-
.stMarkdown {
|
| 82 |
-
white-space: pre-wrap;
|
| 83 |
-
}
|
| 84 |
-
</style>
|
| 85 |
-
""",
|
| 86 |
-
unsafe_allow_html=True
|
| 87 |
-
)
|
|
|
|
| 44 |
|
| 45 |
return left_html, right_html, diff_found
|
| 46 |
|
| 47 |
+
# Apply custom CSS for wider layout
|
| 48 |
+
st.markdown(
|
| 49 |
+
"""
|
| 50 |
+
<style>
|
| 51 |
+
.reportview-container .main .block-container {
|
| 52 |
+
max-width: 100%;
|
| 53 |
+
padding-left: 0%;
|
| 54 |
+
padding-right: 0%;
|
| 55 |
+
}
|
| 56 |
+
.stMarkdown {
|
| 57 |
+
white-space: pre-wrap;
|
| 58 |
+
}
|
| 59 |
+
</style>
|
| 60 |
+
""",
|
| 61 |
+
unsafe_allow_html=True
|
| 62 |
+
)
|
| 63 |
+
|
| 64 |
st.title("Model Structure Comparison Tool")
|
| 65 |
model_id1 = st.text_input("Enter the first HuggingFace Model ID")
|
| 66 |
model_id2 = st.text_input("Enter the second HuggingFace Model ID")
|
|
|
|
| 85 |
with col2:
|
| 86 |
st.write("### Model 2")
|
| 87 |
st.markdown(right_html, unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|