jnaiman commited on
Commit
9010db6
·
1 Parent(s): b66e25a
Files changed (3) hide show
  1. Hello.py +30 -2
  2. images/accesskey_p1.png +0 -0
  3. images/accesskey_p2.png +0 -0
Hello.py CHANGED
@@ -38,10 +38,38 @@ Note that the package [Streamlit](https://streamlit.io/) that we will be working
38
 
39
  st.markdown("""
40
  ## Step 2: Clone the App files -- Option 1 (HuggingFace)
 
 
 
 
 
 
 
 
41
  """)
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  st.markdown("""
44
- ### Step 2.1: Duplicate the HuggingFace App
45
  """)
46
 
47
  st.markdown("""
@@ -59,7 +87,7 @@ Make sure your user name is selected, and it is set to `Public` for visibility.
59
  st.image("images/duplicateSpace_p2.png")
60
 
61
  st.markdown("""
62
- ### Step 2.2: Clone *your duplicated* Space
63
  """)
64
 
65
  st.markdown("""
 
38
 
39
  st.markdown("""
40
  ## Step 2: Clone the App files -- Option 1 (HuggingFace)
41
+
42
+ If you want to be able to deploy this app on HuggingFace, there are some extra steps required for setup (or skip to Option 2 for locally running things).
43
+
44
+ ### Step 2.1: Set up a token to use with HuggingFace
45
+
46
+ Next you will create an [access token for your HuggingFace account](https://huggingface.co/docs/hub/en/security-tokens).
47
+
48
+ **Step 2.1.1:** Navigate to the "Access Tokens" page from "Settings" under your username:
49
  """)
50
 
51
+ st.image("images/accesskey_p1.png")
52
+
53
+ st.markdown("""
54
+ **Step 2.1.2:** Create a new finegrained token with read/write access to your personal repositories.
55
+
56
+ First, click on the "Create new token" button on this page.
57
+
58
+ Then select a Finegrained token with read/write access to your personal repos:
59
+ """)
60
+
61
+ st.image("images/accesskey_p2.png")
62
+
63
+ st.markdown("""
64
+ **Step 2.1.3:** Generate the Token and *save it somewhere safe*
65
+ 1. Click on `Create Token` at the bottom of the current page
66
+ 2. *Save the token string somewhere safe!* We will be using this token throughout this class.
67
+ """)
68
+
69
+
70
+
71
  st.markdown("""
72
+ ### Step 2.2: Duplicate the HuggingFace App
73
  """)
74
 
75
  st.markdown("""
 
87
  st.image("images/duplicateSpace_p2.png")
88
 
89
  st.markdown("""
90
+ ### Step 2.3: Clone *your duplicated* Space
91
  """)
92
 
93
  st.markdown("""
images/accesskey_p1.png ADDED
images/accesskey_p2.png ADDED