CaffeinatedCoding commited on
Commit
b0e434a
·
verified ·
1 Parent(s): c3474d8

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +6 -3
  2. requirements_space.txt +1 -1
app.py CHANGED
@@ -348,6 +348,9 @@ with gr.Blocks(title="AnomalyOS", theme=gr.themes.Soft()) as demo:
348
  btn_refresh = gr.Button("🔄 Refresh")
349
  analytics_out = gr.Textbox(label="System Stats", lines=15)
350
 
351
- btn_refresh.click()
352
- fn=load_analytics,
353
- inputs=[],
 
 
 
 
348
  btn_refresh = gr.Button("🔄 Refresh")
349
  analytics_out = gr.Textbox(label="System Stats", lines=15)
350
 
351
+ btn_refresh.click(
352
+ fn=load_analytics,
353
+ inputs=[],
354
+ outputs=[analytics_out]
355
+ )
356
+ demo.load(fn=load_analytics, inputs=[], outputs=[analytics_out])
requirements_space.txt CHANGED
@@ -15,7 +15,7 @@ shap==0.45.0
15
  scikit-image==0.22.0
16
  imagehash==4.3.1
17
  scipy==1.13.0
18
- scikit-learn==1.4.2
19
  numpy==1.26.4
20
  huggingface_hub==0.22.2
21
  tenacity==8.2.3
 
15
  scikit-image==0.22.0
16
  imagehash==4.3.1
17
  scipy==1.13.0
18
+ scikit-learn==1.6.1
19
  numpy==1.26.4
20
  huggingface_hub==0.22.2
21
  tenacity==8.2.3