Spaces:
Sleeping
Sleeping
Rename appX.py to app.py
Browse files- appX.py → app.py +4 -19
appX.py → app.py
RENAMED
@@ -33,22 +33,9 @@ openai.api_key = OPENAI_API_KEY
|
|
33 |
# # Initialize LangSmith Service
|
34 |
# client = Client(api_key=LANGCHAIN_API_KEY) #langsmith client
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
# Set the OpenAI API key
|
42 |
-
# Retrieve OpenAI API key from environment variables
|
43 |
-
openai_api_key = os.getenv('OPENAI_API_KEY')
|
44 |
-
if not openai_api_key:
|
45 |
-
raise ValueError("OPENAI_API_KEY not set in environment variables")
|
46 |
-
# Set the OpenAI API key
|
47 |
-
openai.api_key = openai_api_key
|
48 |
-
|
49 |
-
# # Load your OpenAI API key
|
50 |
-
# openai_api_key = st.secrets["OPENAI_API_KEY"]
|
51 |
-
# openai.api_key = openai_api_key
|
52 |
|
53 |
# Streamlit page setup
|
54 |
st.set_page_config(
|
@@ -64,11 +51,9 @@ st.set_page_config(
|
|
64 |
|
65 |
#Add the image with a specified width
|
66 |
image_width = 300 # Set the desired width in pixels
|
67 |
-
|
68 |
-
st.image('/Users/cheynelevesseur/Desktop/Python_Code/LLM_Projects/LLM_Vision/MTSS.ai_Logo.png', width=image_width)
|
69 |
|
70 |
# Streamlit app layout
|
71 |
-
# st.title("Research-backed Prompt Generator")
|
72 |
st.header('PromptCraft™ | Prompt Engineering')
|
73 |
st.subheader('Evidence-based Prompts')
|
74 |
|
|
|
33 |
# # Initialize LangSmith Service
|
34 |
# client = Client(api_key=LANGCHAIN_API_KEY) #langsmith client
|
35 |
|
36 |
+
#------------------------------------------------------------------------
|
37 |
+
# Initialize
|
38 |
+
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
# Streamlit page setup
|
41 |
st.set_page_config(
|
|
|
51 |
|
52 |
#Add the image with a specified width
|
53 |
image_width = 300 # Set the desired width in pixels
|
54 |
+
st.image('MTSS.ai_Logo.png', width=image_width)
|
|
|
55 |
|
56 |
# Streamlit app layout
|
|
|
57 |
st.header('PromptCraft™ | Prompt Engineering')
|
58 |
st.subheader('Evidence-based Prompts')
|
59 |
|