Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
SLRConsulting
/
PDAC2024
like
0
Sleeping
App
Files
Files
Community
main
PDAC2024
/
funcs.py
Hamza Salhi
Update funcs.py
6e5e6e5
verified
8 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
183 Bytes
def
get_text_block
(
fname
):
# this is how to read a block of text:
path =
"text_blocks"
f =
open
(path +
"//"
+ fname,
"r"
)
# and then write it to the app
return
f.read();