Spaces:
Sleeping
Sleeping
Yara Kyrychenko
commited on
Commit
·
c6fa65c
1
Parent(s):
4e49cd8
search
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
from openai import OpenAI
|
| 3 |
from together import Together
|
| 4 |
from pymongo.mongo_client import MongoClient
|
|
@@ -238,6 +239,11 @@ if len(st.session_state.messages) >= st.session_state.max_messages:
|
|
| 238 |
elif st.session_state.submitted == False:
|
| 239 |
pass
|
| 240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
elif st.query_params["p"] == "n":
|
| 242 |
st.markdown("""
|
| 243 |
You have not been selected to have a conversation with the chatbot.
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import streamlit.components.v1 as components
|
| 3 |
from openai import OpenAI
|
| 4 |
from together import Together
|
| 5 |
from pymongo.mongo_client import MongoClient
|
|
|
|
| 239 |
elif st.session_state.submitted == False:
|
| 240 |
pass
|
| 241 |
|
| 242 |
+
elif st.query_params["p"] == "g":
|
| 243 |
+
|
| 244 |
+
search = st.text_input("Ask a question about climate action...")
|
| 245 |
+
components.iframe(f"https://www.google.com/search?igu=1&ei=&q={search}", height=1000)
|
| 246 |
+
|
| 247 |
elif st.query_params["p"] == "n":
|
| 248 |
st.markdown("""
|
| 249 |
You have not been selected to have a conversation with the chatbot.
|