Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,9 +3,6 @@ import os
|
|
| 3 |
from dataclasses import dataclass, field
|
| 4 |
from typing import List, Optional, Dict
|
| 5 |
from PIL import Image
|
| 6 |
-
import html as py_html
|
| 7 |
-
import re
|
| 8 |
-
import uuid
|
| 9 |
|
| 10 |
import numpy as np
|
| 11 |
import pandas as pd
|
|
@@ -159,8 +156,7 @@ def display_dialogue(hf_path: str):
|
|
| 159 |
with hf_fs.open(hf_path, "rb") as f:
|
| 160 |
txt = f.read().decode("utf-8")
|
| 161 |
txt = load_text(hf_path)
|
| 162 |
-
st.markdown(
|
| 163 |
-
f"<details><summary><b>Session Transcription</b></summary><div>{txt}</div></details><br>",
|
| 164 |
unsafe_allow_html=True)
|
| 165 |
|
| 166 |
def display_image(image_path):
|
|
|
|
| 3 |
from dataclasses import dataclass, field
|
| 4 |
from typing import List, Optional, Dict
|
| 5 |
from PIL import Image
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
import numpy as np
|
| 8 |
import pandas as pd
|
|
|
|
| 156 |
with hf_fs.open(hf_path, "rb") as f:
|
| 157 |
txt = f.read().decode("utf-8")
|
| 158 |
txt = load_text(hf_path)
|
| 159 |
+
st.markdown(txt,
|
|
|
|
| 160 |
unsafe_allow_html=True)
|
| 161 |
|
| 162 |
def display_image(image_path):
|