vs4vijay commited on
Commit
36ce4fa
1 Parent(s): f987e6e
Files changed (4) hide show
  1. .streamlit/config.toml +2 -2
  2. requirements.txt +2 -1
  3. src/dolly.py +4 -0
  4. start.sh +1 -1
.streamlit/config.toml CHANGED
@@ -1,6 +1,6 @@
1
  [server]
2
- port = 7000
3
- # headless = true
4
 
5
  [browser]
6
  gatherUsageStats = false
 
1
  [server]
2
+ # port = 7000
3
+ headless = true
4
 
5
  [browser]
6
  gatherUsageStats = false
requirements.txt CHANGED
@@ -1 +1,2 @@
1
- streamlit
 
 
1
+ streamlit
2
+ transformers
src/dolly.py ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import torch
2
+ from transformers import pipeline
3
+
4
+ generate_text = pipeline(model="databricks/dolly-v2-3b", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")
start.sh CHANGED
@@ -1 +1 @@
1
- streamlit run src/app.py
 
1
+ streamlit run src/app.py --server.port 7000