Spaces:
Runtime error
Runtime error
Upload app.py
Browse files2 unmodified lines3456678910111210111213141516172 unmodified linesimport osfrom mods.btn_reset import restart_space
if not os.path.exists('models/causallm_14b.IQ3_XS.gguf'):if not os.path.exists('models/causallm_14b.Q4_0.gguf'): from huggingface_hub import snapshot_download os.mkdir("models") os.mkdir("cache") snapshot_download(repo_id='Limour/CausalLM-14B-GGUF', local_dir=r'models', allow_patterns='causallm_14b.IQ3_XS.gguf') snapshot_download(repo_id='Limour/llama-python-streamingllm-cache', repo_type='dataset', local_dir=r'cache') snapshot_download(repo_id='TheBloke/CausalLM-14B-GGUF', local_dir=r'models', allow_patterns='causallm_14b.Q4_0.gguf') snapshot_download(repo_id='Limour/llama-python-streamingllm-cache', repo_type='dataset', local_dir=r'cache', allow_patterns='temp')
try: # 启动另一个程序,并通过管道捕获其输出app.py+6-4