Spaces:
Running
Running
Commit
·
2587847
1
Parent(s):
180bd17
Add application files
Browse files
app.py
CHANGED
@@ -112,11 +112,19 @@ def greet(name1, name2):
|
|
112 |
</script>
|
113 |
"""
|
114 |
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
return html_output, csv_output
|
121 |
# return df_pred.to_html()
|
122 |
|
|
|
112 |
</script>
|
113 |
"""
|
114 |
|
115 |
+
# Initial CSS to hide rows beyond the 15th
|
116 |
+
initial_css = """
|
117 |
+
<style>
|
118 |
+
#output-table tr:nth-child(n+16) {
|
119 |
+
display: none;
|
120 |
+
}
|
121 |
+
</style>
|
122 |
+
"""
|
123 |
+
# ... previous code ...
|
124 |
+
|
125 |
+
# Combine the initial CSS, HTML table, and the Show More button
|
126 |
+
html_output = initial_css + html_output + show_more_button
|
127 |
+
|
128 |
return html_output, csv_output
|
129 |
# return df_pred.to_html()
|
130 |
|