Momal commited on
Commit
c88d08b
·
1 Parent(s): 910e61a

openai key input

Browse files
Files changed (2) hide show
  1. app.py +8 -2
  2. mental_health_raqa.py +6 -0
app.py CHANGED
@@ -1,4 +1,10 @@
1
  import streamlit as st
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ st.title('OpenAI Key Input')
4
+
5
+ # Create a text input box for the OpenAI key
6
+ openai_key = st.text_input('Enter your OpenAI Key', type='password')
7
+
8
+ # Display the key when the user presses the 'Submit' button
9
+ if st.button('Submit'):
10
+ st.write(f'Your OpenAI Key is: {openai_key}')
mental_health_raqa.py CHANGED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+
3
+ def mental_health_raqa(openai_key):
4
+ # Load the data
5
+ data = pd.read_csv('data/raqa.csv')
6
+ return openai_key