Spaces:
GIZ
/
Running on CPU Upgrade

prashant commited on
Commit
e1616b2
1 Parent(s): 2caced7

erro fix due to moving old files

Browse files
app.py CHANGED
@@ -1,4 +1,4 @@
1
- import appStore.keyword_search as keyword_search
2
  import appStore.sdg_analysis as sdg_analysis
3
  #import appStore.coherence as coherence
4
  import appStore.info as info
 
1
+ # import appStore.keyword_search as keyword_search
2
  import appStore.sdg_analysis as sdg_analysis
3
  #import appStore.coherence as coherence
4
  import appStore.info as info
appStore/sdg_analysis.py CHANGED
@@ -40,9 +40,7 @@ def app():
40
  st.markdown("")
41
 
42
 
43
- with st.container():
44
-
45
-
46
 
47
  if 'filepath' in st.session_state:
48
  paraList = runSDGPreprocessingPipeline()
@@ -55,7 +53,8 @@ def app():
55
  # plot
56
  fig, ax = plt.subplots()
57
  ax.pie(x, colors=colors, radius=2, center=(4, 4),
58
- wedgeprops={"linewidth": 1, "edgecolor": "white"}, frame=False,labels =list(x.index))
 
59
  # fig.savefig('temp.png', bbox_inches='tight',dpi= 100)
60
  st.markdown("#### Anything related to SDGs? ####")
61
 
 
40
  st.markdown("")
41
 
42
 
43
+ with st.container():
 
 
44
 
45
  if 'filepath' in st.session_state:
46
  paraList = runSDGPreprocessingPipeline()
 
53
  # plot
54
  fig, ax = plt.subplots()
55
  ax.pie(x, colors=colors, radius=2, center=(4, 4),
56
+ wedgeprops={"linewidth": 1, "edgecolor": "white"},
57
+ frame=False,labels =list(x.index))
58
  # fig.savefig('temp.png', bbox_inches='tight',dpi= 100)
59
  st.markdown("#### Anything related to SDGs? ####")
60
 
udfPreprocess/preprocessing.py CHANGED
@@ -251,8 +251,10 @@ def processingpipeline():
251
  fileconverter = FileConverter()
252
  customPreprocessor = UdfPreProcessor()
253
 
254
- preprocessing_pipeline.add_node(component=fileconverter, name="FileConverter", inputs=["File"])
255
- preprocessing_pipeline.add_node(component = customPreprocessor, name ='UdfPreProcessor', inputs=["FileConverter"])
 
 
256
 
257
  return preprocessing_pipeline
258
 
 
251
  fileconverter = FileConverter()
252
  customPreprocessor = UdfPreProcessor()
253
 
254
+ preprocessing_pipeline.add_node(component=fileconverter,
255
+ name="FileConverter", inputs=["File"])
256
+ preprocessing_pipeline.add_node(component = customPreprocessor,
257
+ name ='UdfPreProcessor', inputs=["FileConverter"])
258
 
259
  return preprocessing_pipeline
260