ariG23498 HF Staff commited on
Commit
727edcc
·
verified ·
1 Parent(s): 036d12e

Upload google_embeddinggemma-300m_1.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. google_embeddinggemma-300m_1.py +2 -6
google_embeddinggemma-300m_1.py CHANGED
@@ -11,9 +11,7 @@
11
  # ///
12
 
13
  try:
14
- # Login into Hugging Face Hub
15
- from huggingface_hub import login
16
- login()
17
  with open('google_embeddinggemma-300m_1.txt', 'w', encoding='utf-8') as f:
18
  f.write('Everything was good in google_embeddinggemma-300m_1.txt')
19
  except Exception as e:
@@ -28,9 +26,7 @@ except Exception as e:
28
  with open('google_embeddinggemma-300m_1.txt', 'a', encoding='utf-8') as f:
29
  import traceback
30
  f.write('''```CODE:
31
- # Login into Hugging Face Hub
32
- from huggingface_hub import login
33
- login()
34
  ```
35
 
36
  ERROR:
 
11
  # ///
12
 
13
  try:
14
+ !pip install -U sentence-transformers git+https://github.com/huggingface/transformers@v4.56.0-Embedding-Gemma-preview
 
 
15
  with open('google_embeddinggemma-300m_1.txt', 'w', encoding='utf-8') as f:
16
  f.write('Everything was good in google_embeddinggemma-300m_1.txt')
17
  except Exception as e:
 
26
  with open('google_embeddinggemma-300m_1.txt', 'a', encoding='utf-8') as f:
27
  import traceback
28
  f.write('''```CODE:
29
+ !pip install -U sentence-transformers git+https://github.com/huggingface/transformers@v4.56.0-Embedding-Gemma-preview
 
 
30
  ```
31
 
32
  ERROR: