Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import time
|
|
|
3 |
from autism_chatbot import *
|
4 |
|
5 |
class StreamHandler:
|
@@ -132,7 +133,7 @@ def main():
|
|
132 |
if st.session_state.bot is None:
|
133 |
stream_handler = StreamHandler(stream_placeholder)
|
134 |
st.session_state.bot = StreamingAutismResearchBot(
|
135 |
-
groq_api_key="
|
136 |
stream_handler=stream_handler,
|
137 |
)
|
138 |
else:
|
|
|
1 |
import streamlit as st
|
2 |
import time
|
3 |
+
import os
|
4 |
from autism_chatbot import *
|
5 |
|
6 |
class StreamHandler:
|
|
|
133 |
if st.session_state.bot is None:
|
134 |
stream_handler = StreamHandler(stream_placeholder)
|
135 |
st.session_state.bot = StreamingAutismResearchBot(
|
136 |
+
groq_api_key = os.environ.get("GROQ_API_KEY"),
|
137 |
stream_handler=stream_handler,
|
138 |
)
|
139 |
else:
|