Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ import yaml
|
|
| 3 |
|
| 4 |
from src.models.model import Summarization
|
| 5 |
|
|
|
|
| 6 |
def predict_model(text: str):
|
| 7 |
"""
|
| 8 |
Predict the summary of the given text.
|
|
@@ -15,6 +16,7 @@ def predict_model(text: str):
|
|
| 15 |
pre_summary = model.predict(text)
|
| 16 |
return pre_summary
|
| 17 |
|
|
|
|
| 18 |
def visualize():
|
| 19 |
st.write("# Summarization UI")
|
| 20 |
st.markdown(
|
|
|
|
| 3 |
|
| 4 |
from src.models.model import Summarization
|
| 5 |
|
| 6 |
+
|
| 7 |
def predict_model(text: str):
|
| 8 |
"""
|
| 9 |
Predict the summary of the given text.
|
|
|
|
| 16 |
pre_summary = model.predict(text)
|
| 17 |
return pre_summary
|
| 18 |
|
| 19 |
+
|
| 20 |
def visualize():
|
| 21 |
st.write("# Summarization UI")
|
| 22 |
st.markdown(
|