amaljoy9 commited on
Commit
30fb055
·
verified ·
1 Parent(s): 866c395

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -27,6 +27,17 @@ import shinyswatch
27
 
28
  from shiny import App, Inputs, Outputs, Session, reactive, render, req, ui
29
 
 
 
 
 
 
 
 
 
 
 
 
30
  sns.set_theme()
31
 
32
  www_dir = Path(__file__).parent.resolve() / "www"
 
27
 
28
  from shiny import App, Inputs, Outputs, Session, reactive, render, req, ui
29
 
30
+ # Set the HF_HOME environment variable to a writable directory
31
+ #hf_home = '/tmp/hf_home'
32
+ #os.environ['HF_HOME'] = hf_home
33
+
34
+ # Create the HF_HOME directory if it doesn't exist
35
+ #if not os.path.exists(hf_home):
36
+ # os.makedirs(hf_home)
37
+
38
+ # Run the main training script
39
+ os.system('python py_new_test.py')
40
+
41
  sns.set_theme()
42
 
43
  www_dir = Path(__file__).parent.resolve() / "www"