TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to access files in /tmp in a HF space (GUI)?

2 pointsby spacetimeuser5over 1 year ago
I&#x27;m building a simple ML python app with Gradio on a Huggingface space.<p>My main function should return a .txt file (actuallly - file.name which is a path to file) filled with text using a tempfile module. The &quot;outputs&quot; parameter in gradio.Interface is set to &quot;textbox&quot;. After the compeltion of the processing there is &quot;&#x2F;tmp&#x2F;tmp0m22k8nw.txt&quot; displayed in the outputs textbox in the app. How can I access this .txt file in the HF space?<p>HF spaces seem not to have access to file system?

1 comment

layer8over 1 year ago
HN is not Stack Overflow. You might have more luck on the HF forums: <a href="https:&#x2F;&#x2F;discuss.huggingface.co&#x2F;" rel="nofollow">https:&#x2F;&#x2F;discuss.huggingface.co&#x2F;</a>