ybelkada commited on
Commit
2ee51b3
β€’
1 Parent(s): fbab906

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -2,6 +2,14 @@ import subprocess
2
  import sys
3
  import spaces
4
 
 
 
 
 
 
 
 
 
5
  import torch
6
  from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
7
  import gradio as gr
 
2
  import sys
3
  import spaces
4
 
5
+ # install packages for mamba
6
+ def install():
7
+ print("Install personal packages", flush=True)
8
+ subprocess.run(shlex.split("pip install https://github.com/Dao-AILab/causal-conv1d/archive/refs/tags/v1.4.0.tar.gz"))
9
+ subprocess.run(shlex.split("pip install https://github.com/state-spaces/mamba/archive/refs/tags/v2.2.2.tar.gz"))
10
+
11
+ install()
12
+
13
  import torch
14
  from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
15
  import gradio as gr