changes in app.py
Browse files
README.md
CHANGED
@@ -7,8 +7,6 @@ sdk: streamlit
|
|
7 |
sdk_version: 1.27.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
-
hf_oauth: true
|
11 |
-
hf_oauth_redirect_path: https://Kush1/LLAMA-2/auth/callback
|
12 |
---
|
13 |
|
14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
7 |
sdk_version: 1.27.1
|
8 |
app_file: app.py
|
9 |
pinned: false
|
|
|
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -2,6 +2,9 @@ from transformers import AutoTokenizer
|
|
2 |
import transformers
|
3 |
import torch
|
4 |
import streamlit as st
|
|
|
|
|
|
|
5 |
|
6 |
prompt = st.text_input('Prompt', 'Hello, How you doing ?')
|
7 |
|
|
|
2 |
import transformers
|
3 |
import torch
|
4 |
import streamlit as st
|
5 |
+
import os
|
6 |
+
|
7 |
+
HF_TOKEN = os.environ.get("token")
|
8 |
|
9 |
prompt = st.text_input('Prompt', 'Hello, How you doing ?')
|
10 |
|