Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -0
src/streamlit_app.py
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
from backend import db_connection # Import db_connection
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
# -----------------------------
|
| 6 |
# Summarizer model
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
from backend import db_connection # Import db_connection
|
| 4 |
+
import os
|
| 5 |
+
os.environ['TRANSFORMERS_CACHE'] = './hf_cache'
|
| 6 |
+
|
| 7 |
|
| 8 |
# -----------------------------
|
| 9 |
# Summarizer model
|