NV9523 commited on
Commit
9618736
verified
1 Parent(s): 901334b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,4 +1,9 @@
1
- !pip install transformers streamlit torch
 
 
 
 
 
2
  import streamlit as st
3
  from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
4
  import torch
 
1
+ import subprocess
2
+ import sys
3
+
4
+ # C脿i 膽岷穞 th瓢 vi峄噉 n岷縰 ch瓢a c贸
5
+ subprocess.check_call([sys.executable, "-m", "pip", "install", "transformers", "streamlit", "torch"])
6
+
7
  import streamlit as st
8
  from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
9
  import torch