MaroueneA commited on
Commit
0a5ddc0
1 Parent(s): 56a53e1

Update app.py tmp file

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -14,9 +14,10 @@ import numpy as np
14
  import tempfile
15
  from collections import Counter
16
  import os
 
17
 
18
- # Set the temporary directory for Gradio to use
19
- os.environ['GRADIO_TEMP_DIR'] = '/home/marwen/gradio_tmp'
20
 
21
  # Load the models and their tokenizers
22
  model_paths = {
 
14
  import tempfile
15
  from collections import Counter
16
  import os
17
+ import tempfile
18
 
19
+ temp_dir = tempfile.gettempdir()
20
+ os.environ['GRADIO_TEMP_DIR'] = temp_dir
21
 
22
  # Load the models and their tokenizers
23
  model_paths = {