SantanuBanerjee commited on
Commit
7e1f943
·
verified ·
1 Parent(s): f7bb109

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -18
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
- # # Launch the interface
103
- # if __name__ == "__main__":
104
- # interface.launch()
105
 
106
 
107
- # Additional description at the bottom of the page
108
- additional_description = gr.HTML(
109
- "<p style='font-size: 14px; color: gray;'>Note: The example files provided above are for demonstration purposes. "
110
- "Feel free to upload your own Excel files to see the results. If you have any questions, refer to the documentation-links or contact "
111
- "<a href='https://www.change.org/p/democracy-evolution-ensuring-humanity-s-eternal-existence-through-taxdirection' target='_blank'>support</a>.\n</p>"
112
- "<p style='font-weight: bold; font-size: 17px;'>\t For more information, visit "
113
- "<a href='https://santanban.github.io/TaxDirection/' target='_blank'>#TaxDirection weblink</a>.</p>"
114
- )
115
 
116
- # Launch the interface with the additional description
117
- demo = gr.Blocks()
118
- with demo:
119
- interface.render()
120
- additional_description.render()
121
 
122
- if __name__ == "__main__":
123
- demo.launch()
 
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()