none commited on
Commit
63c6e06
1 Parent(s): b45ba86

Add disclaimer to post and quickstart to README

Browse files
Files changed (2) hide show
  1. README.md +8 -1
  2. app.py +4 -7
README.md CHANGED
@@ -10,4 +10,11 @@ pinned: false
10
  license: mit
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
10
  license: mit
11
  ---
12
 
13
+ # Quickstart
14
+ `app.py` uses f-strings so I think 3.8 should be the minimum Python version. I haven't checked that, though.
15
+ ```shell
16
+ % python3 -m venv .venv
17
+ % source .venv/bin/activate
18
+ % pip install -r requirements.txt
19
+ % streamlit run app.py
20
+ ```
app.py CHANGED
@@ -293,15 +293,12 @@ If you click on a node, Plotly will show the path to that node in a banner at th
293
 
294
  The numbers and letters in brackets like `[3.L]` refer to the parent node's position in a breadth-first traversal of the tree and whether the current node is a left or right child of that parent.
295
 
296
- I'm caught between a rock and a hard place here.
297
- Streamlit makes the plot too small because it wants the plot to fit inline with the text.
298
- Expanding the plot fixes this problem in Streamlit.
299
- But.
300
- Hugging Face has done something to make the plot ENORMOUS, which looks even worse than the too-small Streamlit version.
301
- Pick your poison.
302
 
303
- It takes a second to get going after you hit `Play`.
 
 
304
 
 
305
  """)
306
 
307
 
 
293
 
294
  The numbers and letters in brackets like `[3.L]` refer to the parent node's position in a breadth-first traversal of the tree and whether the current node is a left or right child of that parent.
295
 
 
 
 
 
 
 
296
 
297
+ It looks like Hugging Face has destroyed this animation by making it jump back to the beginning after every step.
298
+ Maybe I'm using up too much memory storing all the frames or something.
299
+ That's a shame.
300
 
301
+ The README in this repo has instructions for how to run this Streamlit app yourself if you want to see the final product in all its glory.
302
  """)
303
 
304