Update src/streamlit_app.py
Browse files- src/streamlit_app.py +0 -15
src/streamlit_app.py
CHANGED
|
@@ -1,18 +1,3 @@
|
|
| 1 |
-
import streamlit as st
|
| 2 |
-
from transformers import pipeline
|
| 3 |
-
|
| 4 |
-
def load_model():
|
| 5 |
-
|
| 6 |
-
return pipeline(
|
| 7 |
-
|
| 8 |
-
"text-generation",
|
| 9 |
-
|
| 10 |
-
model="google/flan-t5-base"
|
| 11 |
-
|
| 12 |
-
)
|
| 13 |
-
|
| 14 |
-
generator = load_model()
|
| 15 |
-
|
| 16 |
import streamlit as st
|
| 17 |
|
| 18 |
# 1. Basic Configuration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
# 1. Basic Configuration
|