Spaces:
Sleeping
Sleeping
Kieran Gookey
commited on
Commit
·
6dd905c
1
Parent(s):
8b6399b
Updated uuid to string
Browse files
app.py
CHANGED
@@ -27,12 +27,11 @@ html_file = st.file_uploader("Upload a html file", type=["html"])
|
|
27 |
|
28 |
if html_file is not None:
|
29 |
stringio = StringIO(html_file.getvalue().decode("utf-8"))
|
30 |
-
st.write(stringio)
|
31 |
-
|
32 |
string_data = stringio.read()
|
33 |
-
st.
|
|
|
34 |
|
35 |
-
document_id = uuid.uuid4()
|
36 |
|
37 |
document = Document(text=string_data)
|
38 |
document.metadata["id"] = document_id
|
|
|
27 |
|
28 |
if html_file is not None:
|
29 |
stringio = StringIO(html_file.getvalue().decode("utf-8"))
|
|
|
|
|
30 |
string_data = stringio.read()
|
31 |
+
with st.expander("Uploaded HTML"):
|
32 |
+
st.write(string_data)
|
33 |
|
34 |
+
document_id = str(uuid.uuid4())
|
35 |
|
36 |
document = Document(text=string_data)
|
37 |
document.metadata["id"] = document_id
|