Brian Morin
commited on
Commit
•
97cc2fc
1
Parent(s):
58802f0
Add application file
Browse files
app.py
CHANGED
@@ -1,23 +1,13 @@
|
|
1 |
-
# ran this on command line first in directory where I am putting app.py: git clone https://huggingface.co/spaces/brdemorin/chat
|
2 |
# this will create a "chat" directory. This "app.py" file will need to be saved to that chat directory
|
3 |
# change directory in command line to: C:\Users\brian.morin\Documents\HuggingFace\chat
|
4 |
# then do the below. Must do the below everytime I make changes to app.py
|
5 |
-
|
6 |
-
|
7 |
-
git
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
# I'm not sure if I actually need to do this: in your terminal, navigate to the directory containing your app.py file and run the command: streamlit run app.py
|
12 |
-
|
13 |
-
# then navigate here: https://huggingface.co/spaces/brdemorin/chat
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
|
22 |
import streamlit as st
|
23 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
1 |
+
# first time - ran this on command line first in directory where I am putting app.py: git clone https://huggingface.co/spaces/brdemorin/chat
|
2 |
# this will create a "chat" directory. This "app.py" file will need to be saved to that chat directory
|
3 |
# change directory in command line to: C:\Users\brian.morin\Documents\HuggingFace\chat
|
4 |
# then do the below. Must do the below everytime I make changes to app.py
|
5 |
+
# 1 -> change directory to: cd C:\Users\brian.morin\Documents\HuggingFace\chat
|
6 |
+
# 2 git add app.py
|
7 |
+
# 3. git commit -m "Add application file"
|
8 |
+
# 4. git push
|
9 |
+
# 5. # I'm not sure if I actually need to do this: in your terminal, navigate to the directory containing your app.py file and run the command: streamlit run app.py
|
10 |
+
# 6. # then navigate here: https://huggingface.co/spaces/brdemorin/chat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
import streamlit as st
|
13 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|