shamikbose89 commited on
Commit
bfe35e3
·
1 Parent(s): 5d03634

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -16,7 +16,12 @@ language_choices = {
16
  "French": "fr",
17
  }
18
  language_code = "en"
19
- os.makedirs("/home/user/app/cache", exist_ok=True)
 
 
 
 
 
20
 
21
  def change_language(language_selection):
22
  global language_code
 
16
  "French": "fr",
17
  }
18
  language_code = "en"
19
+ cache_dir = "/home/user/app/cache"
20
+ os.makedirs(cache_dir, exist_ok=True)
21
+ if os.path.isdir(cache_dir):
22
+ gr.Info("Cache directory created at", cache_dir)
23
+ else:
24
+ gr.Warning("Cache directory creation error")
25
 
26
  def change_language(language_selection):
27
  global language_code