Update app.py
Browse files
app.py
CHANGED
@@ -68,22 +68,24 @@ view = gr.Interface(
|
|
68 |
)
|
69 |
view.css = """
|
70 |
body {
|
71 |
-
margin: 0;
|
72 |
-
padding: 0;
|
|
|
73 |
}
|
74 |
|
75 |
#output-box {
|
76 |
-
font-size: 40px;
|
77 |
-
line-height: 2;
|
78 |
-
border: 2px solid #ccc;
|
79 |
-
border-radius: 8px;
|
80 |
-
padding: 15px;
|
81 |
-
background-color: #f9f9f9;
|
82 |
-
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
|
83 |
-
width: calc(100% - 30px);
|
84 |
-
max-width: 600px;
|
85 |
-
margin: auto;
|
|
|
|
|
|
|
86 |
}
|
87 |
"""
|
88 |
-
|
89 |
-
view.launch()
|
|
|
68 |
)
|
69 |
view.css = """
|
70 |
body {
|
71 |
+
margin: 0;
|
72 |
+
padding: 0;
|
73 |
+
overflow-x: hidden; /* Prevent horizontal scrolling */
|
74 |
}
|
75 |
|
76 |
#output-box {
|
77 |
+
font-size: 40px;
|
78 |
+
line-height: 2;
|
79 |
+
border: 2px solid #ccc;
|
80 |
+
border-radius: 8px;
|
81 |
+
padding: 15px;
|
82 |
+
background-color: #f9f9f9;
|
83 |
+
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
|
84 |
+
width: calc(100% - 30px);
|
85 |
+
max-width: 600px;
|
86 |
+
margin: auto;
|
87 |
+
box-sizing: border-box; /* Ensure padding is included in width calculations */
|
88 |
+
overflow-wrap: break-word; /* Prevent content from overflowing horizontally */
|
89 |
+
word-wrap: break-word; /* Support for older browsers */
|
90 |
}
|
91 |
"""
|
|
|
|