ariG23498 HF Staff commited on
Commit
3229dd6
·
verified ·
1 Parent(s): 94905e2

Upload facebook_MobileLLM-Pro_0.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. facebook_MobileLLM-Pro_0.py +4 -2
facebook_MobileLLM-Pro_0.py CHANGED
@@ -11,7 +11,8 @@
11
  # ///
12
 
13
  try:
14
- !pip install -U transformers
 
15
  with open('facebook_MobileLLM-Pro_0.txt', 'w', encoding='utf-8') as f:
16
  f.write('Everything was good in facebook_MobileLLM-Pro_0.txt')
17
  except Exception as e:
@@ -26,7 +27,8 @@ except Exception as e:
26
  with open('facebook_MobileLLM-Pro_0.txt', 'a', encoding='utf-8') as f:
27
  import traceback
28
  f.write('''```CODE:
29
- !pip install -U transformers
 
30
  ```
31
 
32
  ERROR:
 
11
  # ///
12
 
13
  try:
14
+ from huggingface_hub import login
15
+ login(new_session=False)
16
  with open('facebook_MobileLLM-Pro_0.txt', 'w', encoding='utf-8') as f:
17
  f.write('Everything was good in facebook_MobileLLM-Pro_0.txt')
18
  except Exception as e:
 
27
  with open('facebook_MobileLLM-Pro_0.txt', 'a', encoding='utf-8') as f:
28
  import traceback
29
  f.write('''```CODE:
30
+ from huggingface_hub import login
31
+ login(new_session=False)
32
  ```
33
 
34
  ERROR: