Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,12 @@ def data_pre_processing(file_responses):
|
|
13 |
'''Your financial allocation for Problem 3:
|
14 |
Mention the percentage of your Tax Amount which you wish the Government would allocate through their annual budget, to implement a solution specifically to your 3rd problem.'''
|
15 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
# # Convert columns to numeric and fill NaN values with 0
|
18 |
# for col in columns:
|
@@ -99,25 +105,25 @@ interface = gr.Interface(
|
|
99 |
|
100 |
|
101 |
|
102 |
-
#
|
103 |
-
|
104 |
-
|
105 |
|
106 |
|
107 |
-
# Additional description at the bottom of the page
|
108 |
-
additional_description = gr.HTML(
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
|
116 |
-
# Launch the interface with the additional description
|
117 |
-
demo = gr.Blocks()
|
118 |
-
with demo:
|
119 |
-
|
120 |
-
|
121 |
|
122 |
-
if __name__ == "__main__":
|
123 |
-
|
|
|
13 |
'''Your financial allocation for Problem 3:
|
14 |
Mention the percentage of your Tax Amount which you wish the Government would allocate through their annual budget, to implement a solution specifically to your 3rd problem.'''
|
15 |
]
|
16 |
+
file_responses = file_responses[[
|
17 |
+
"Personal_TaxDirection_1_Wish",
|
18 |
+
"Personal_TaxDirection_2_TaxPercentageAllocated"
|
19 |
+
]]
|
20 |
+
|
21 |
+
|
22 |
|
23 |
# # Convert columns to numeric and fill NaN values with 0
|
24 |
# for col in columns:
|
|
|
105 |
|
106 |
|
107 |
|
108 |
+
# Launch the interface
|
109 |
+
if __name__ == "__main__":
|
110 |
+
interface.launch()
|
111 |
|
112 |
|
113 |
+
# # Additional description at the bottom of the page
|
114 |
+
# additional_description = gr.HTML(
|
115 |
+
# "<p style='font-size: 14px; color: gray;'>Note: The example files provided above are for demonstration purposes. "
|
116 |
+
# "Feel free to upload your own Excel files to see the results. If you have any questions, refer to the documentation-links or contact "
|
117 |
+
# "<a href='https://www.change.org/p/democracy-evolution-ensuring-humanity-s-eternal-existence-through-taxdirection' target='_blank'>support</a>.\n</p>"
|
118 |
+
# "<p style='font-weight: bold; font-size: 17px;'>\t For more information, visit "
|
119 |
+
# "<a href='https://santanban.github.io/TaxDirection/' target='_blank'>#TaxDirection weblink</a>.</p>"
|
120 |
+
# )
|
121 |
|
122 |
+
# # Launch the interface with the additional description
|
123 |
+
# demo = gr.Blocks()
|
124 |
+
# with demo:
|
125 |
+
# interface.render()
|
126 |
+
# additional_description.render()
|
127 |
|
128 |
+
# if __name__ == "__main__":
|
129 |
+
# demo.launch()
|