Spaces:
Sleeping
Sleeping
changes
Browse files- .streamlit/config.toml +2 -2
- requirements.txt +2 -1
- src/dolly.py +4 -0
- start.sh +1 -1
.streamlit/config.toml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
[server]
|
2 |
-
port = 7000
|
3 |
-
|
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
|