Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,8 +154,11 @@ def get_path():
|
|
| 154 |
return f"{get_base_path()}/{st.session_state.current_index}.json"
|
| 155 |
|
| 156 |
def display_dialogue(hf_path: str):
|
| 157 |
-
|
|
|
|
| 158 |
display_dialogue_with_numbers(txt)
|
|
|
|
|
|
|
| 159 |
#st.markdown(
|
| 160 |
# f"<details><summary><b>Herr Laus</b></summary><div>{txt}</div></details><br>",
|
| 161 |
#unsafe_allow_html=True)
|
|
|
|
| 154 |
return f"{get_base_path()}/{st.session_state.current_index}.json"
|
| 155 |
|
| 156 |
def display_dialogue(hf_path: str):
|
| 157 |
+
with hf_fs.open(hf_path, "rb") as f:
|
| 158 |
+
txt = f.read().decode("utf-8")
|
| 159 |
display_dialogue_with_numbers(txt)
|
| 160 |
+
#txt = load_text(hf_path)
|
| 161 |
+
#display_dialogue_with_numbers(txt)
|
| 162 |
#st.markdown(
|
| 163 |
# f"<details><summary><b>Herr Laus</b></summary><div>{txt}</div></details><br>",
|
| 164 |
#unsafe_allow_html=True)
|