Spaces:
No application file
No application file
Upload flan_t5_xl_with_gpu.py
#2
by
Zaven
- opened
- flan_t5_xl_with_gpu.py +4 -10
flan_t5_xl_with_gpu.py
CHANGED
@@ -48,12 +48,6 @@ st.write(x, 'squared is', x * x)
|
|
48 |
!apt-get update -qq
|
49 |
!apt-get install -y -qq git
|
50 |
|
51 |
-
#!git clone https://huggingface.co/spaces/VGG1555/VGG1
|
52 |
-
|
53 |
-
!pwd
|
54 |
-
!ls -la /
|
55 |
-
!cd /content/VGG1
|
56 |
-
|
57 |
import torch
|
58 |
from transformers import T5Tokenizer, T5ForConditionalGeneration
|
59 |
|
@@ -97,7 +91,7 @@ outputs = model.generate(input_ids,
|
|
97 |
print(GoogleTranslator(source='en', target='hy').translate(tokenizer.decode(outputs[0], skip_special_tokens = True)))
|
98 |
|
99 |
#!git clone https://huggingface.co/spaces/VGG1555/VGG1
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
48 |
!apt-get update -qq
|
49 |
!apt-get install -y -qq git
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
import torch
|
52 |
from transformers import T5Tokenizer, T5ForConditionalGeneration
|
53 |
|
|
|
91 |
print(GoogleTranslator(source='en', target='hy').translate(tokenizer.decode(outputs[0], skip_special_tokens = True)))
|
92 |
|
93 |
#!git clone https://huggingface.co/spaces/VGG1555/VGG1
|
94 |
+
#!cd /content/VGG1 && git status
|
95 |
+
#!cd /content/VGG1 && git add app.py
|
96 |
+
#!cd /content/VGG1 && git commit -m "Add application file"
|
97 |
+
#!cd /content/VGG1 && git push
|