Spaces:
Paused
Paused
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import os
|
3 |
+
from generate_answer import generate_answer
|
4 |
+
|
5 |
+
|
6 |
+
st.title("Bart Text Summariation Bot?")
|
7 |
+
|
8 |
+
input_text = st.text_area("Enter Text for Summarisation")
|
9 |
+
if st.button("""Enter >>>>> """):
|
10 |
+
if input_text:
|
11 |
+
response_text = generate_answer(input_text)
|
12 |
+
st.write(response_text)
|