Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- baby_llama2.py +1 -1
baby_llama2.py
CHANGED
@@ -11,7 +11,7 @@ def generate_text():
|
|
11 |
# Make sure the C program is compiled before we try to run it
|
12 |
if not os.path.exists("run"):
|
13 |
compile_c_program()
|
14 |
-
|
15 |
cmd = ['./run', 'model.bin']
|
16 |
result = subprocess.run(cmd, stdout=subprocess.PIPE, text=True)
|
17 |
translator= Translator(from_lang='en', to_lang='zh-cn')
|
|
|
11 |
# Make sure the C program is compiled before we try to run it
|
12 |
if not os.path.exists("run"):
|
13 |
compile_c_program()
|
14 |
+
os.chmod('run', 0o755)
|
15 |
cmd = ['./run', 'model.bin']
|
16 |
result = subprocess.run(cmd, stdout=subprocess.PIPE, text=True)
|
17 |
translator= Translator(from_lang='en', to_lang='zh-cn')
|