nelsonjq commited on
Commit
6425dcc
·
verified ·
1 Parent(s): d7cb910
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -6,6 +6,7 @@ from frame_semantic_transformer.data.loaders.loader import InferenceLoader
6
  import pandas as pd
7
  import ast
8
  import re
 
9
  from nltk.stem import SnowballStemmer
10
 
11
  # Huggingface model path
@@ -16,9 +17,9 @@ model = T5ForConditionalGeneration.from_pretrained(huggingface_model_path)
16
  tokenizer = T5TokenizerFast.from_pretrained(huggingface_model_path)
17
 
18
  # Load the DataFrame
19
- !mkdir -p Asfalda
20
- import subprocess
21
 
 
 
22
  subprocess.run(['wget', '--output-document=Asfalda/frame_lus_df.tsv', 'https://seafile.unistra.fr/f/0155ced00b8d441eb131/?dl=1']
23
  )
24
  frame_lus_df = pd.read_csv("Asfalda/frame_lus_df.tsv", delimiter='\t')
 
6
  import pandas as pd
7
  import ast
8
  import re
9
+ import os
10
  from nltk.stem import SnowballStemmer
11
 
12
  # Huggingface model path
 
17
  tokenizer = T5TokenizerFast.from_pretrained(huggingface_model_path)
18
 
19
  # Load the DataFrame
 
 
20
 
21
+ import subprocess
22
+ os.makedirs("Asfalda", exist_ok=True)
23
  subprocess.run(['wget', '--output-document=Asfalda/frame_lus_df.tsv', 'https://seafile.unistra.fr/f/0155ced00b8d441eb131/?dl=1']
24
  )
25
  frame_lus_df = pd.read_csv("Asfalda/frame_lus_df.tsv", delimiter='\t')