umarch commited on
Commit
e85e1bf
·
verified ·
1 Parent(s): f6ec60a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -1,15 +1,15 @@
1
- import streamlit as st
2
- from huggingface_hub import get_secret, SecretNotFoundError
3
-
4
- try:
5
- print("Attempting to retrieve LLM_PROMPT...")
6
- llm_prompt = get_secret("LLM_PROMPT")
7
- print("LLM_PROMPT retrieved successfully.")
8
- print(f"LLM_PROMPT value: {llm_prompt}")
9
- # Now you can use llm_prompt in your code
10
- except SecretNotFoundError:
11
- print("LLM_PROMPT not found.")
12
- st.error("LLM_PROMPT secret not found in Hugging Face secrets.")
13
-
14
- # ... rest of your code ...
15
  st.write("hello world")
 
1
+ import streamlit as st
2
+ from huggingface_hub import get_secret, SecretNotFoundError
3
+
4
+ try:
5
+ print("Attempting to retrieve LLM_PROMPT...")
6
+ llm_prompt = get_secret("LLM_PROMPT")
7
+ print("LLM_PROMPT retrieved successfully.")
8
+ print(f"LLM_PROMPT value: {llm_prompt}")
9
+ # Now you can use llm_prompt in your code
10
+ except SecretNotFoundError:
11
+ print("LLM_PROMPT not found.")
12
+ st.error("LLM_PROMPT secret not found in Hugging Face secrets.")
13
+
14
+ # ... rest of your code ...
15
  st.write("hello world")