gursul commited on
Commit
fcccbfa
·
verified ·
1 Parent(s): 3bf888a

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -6,8 +6,10 @@ from huggingface_hub import upload_file, hf_hub_download, login
6
 
7
  DATASET_REPO = "gursul/german_exercise_dataset"
8
 
9
- ENGLISH_WORDS_FILE = "/content/sample_data/en_de.json" # maps to en_de.json
10
- GERMAN_WORDS_FILE = "/content/sample_data/de_en.json" # maps to de_en.json
 
 
11
 
12
  def ensure_json_file(path):
13
  if not os.path.exists(path):
@@ -256,7 +258,7 @@ def sync_from_hf():
256
  #os.rename("en_de.json", ENGLISH_WORDS_FILE)
257
  #os.rename("de_en.json", GERMAN_WORDS_FILE)
258
 
259
- sync_from_hf()
260
 
261
  ensure_json_file(ENGLISH_WORDS_FILE)
262
  ensure_json_file(GERMAN_WORDS_FILE)
 
6
 
7
  DATASET_REPO = "gursul/german_exercise_dataset"
8
 
9
+ #ENGLISH_WORDS_FILE = "/content/sample_data/en_de.json" # maps to en_de.json
10
+ #GERMAN_WORDS_FILE = "/content/sample_data/de_en.json" # maps to de_en.json
11
+ ENGLISH_WORDS_FILE = "en_de.json"
12
+ GERMAN_WORDS_FILE = "de_en.json"
13
 
14
  def ensure_json_file(path):
15
  if not os.path.exists(path):
 
258
  #os.rename("en_de.json", ENGLISH_WORDS_FILE)
259
  #os.rename("de_en.json", GERMAN_WORDS_FILE)
260
 
261
+ sync_from_hf()
262
 
263
  ensure_json_file(ENGLISH_WORDS_FILE)
264
  ensure_json_file(GERMAN_WORDS_FILE)