Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,12 +76,12 @@ st.title("Meeting Summary Notes")
|
|
| 76 |
st.text("Summarize the meeting in one go...")
|
| 77 |
|
| 78 |
# Input for meeting description
|
| 79 |
-
meeting_desc = st.text_area("If you know
|
| 80 |
|
| 81 |
-
transcipt_text = st.text_area("Paste the transcript text")
|
| 82 |
-
|
| 83 |
-
# File uploader for the meeting transcript
|
| 84 |
-
|
| 85 |
|
| 86 |
submit = st.button("Submit")
|
| 87 |
|
|
@@ -91,13 +91,13 @@ if submit:
|
|
| 91 |
# Display the summary
|
| 92 |
st.subheader("Meeting Summary")
|
| 93 |
st.write(response)
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
else:
|
| 103 |
st.error("Please enter the transcript text Or upload a valid PDF file.")
|
|
|
|
| 76 |
st.text("Summarize the meeting in one go...")
|
| 77 |
|
| 78 |
# Input for meeting description
|
| 79 |
+
meeting_desc = st.text_area("If you know anything about the meeting, paste it here (e.g., meeting description, team, or project name):")
|
| 80 |
|
| 81 |
+
transcipt_text = st.text_area("Paste the meet/call transcript text here")
|
| 82 |
+
st.text("-----------OR-----------")
|
| 83 |
+
# File uploader for the meeting transcript
|
| 84 |
+
uploaded_file = st.file_uploader("Upload Meeting Transcript", type="pdf", help="Please upload the PDF document of transcript")
|
| 85 |
|
| 86 |
submit = st.button("Submit")
|
| 87 |
|
|
|
|
| 91 |
# Display the summary
|
| 92 |
st.subheader("Meeting Summary")
|
| 93 |
st.write(response)
|
| 94 |
+
elif uploaded_file is not None:
|
| 95 |
+
# Extract text from the uploaded PDF
|
| 96 |
+
text = input_pdf_text(uploaded_file)
|
| 97 |
+
# Generate summary using the provided description and extracted meeting text
|
| 98 |
+
response = generate_summary(meeting_desc, text)
|
| 99 |
+
# Display the summar
|
| 100 |
+
st.subheader("Meeting Summary")
|
| 101 |
+
st.write(response)
|
| 102 |
else:
|
| 103 |
st.error("Please enter the transcript text Or upload a valid PDF file.")
|