Spaces:
Runtime error
Runtime error
openai key input
Browse files- app.py +8 -2
- mental_health_raqa.py +6 -0
app.py
CHANGED
|
@@ -1,4 +1,10 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|