CosmoAI commited on
Commit
80e86c3
·
1 Parent(s): 58c6cb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -1,36 +1,36 @@
1
  import streamlit as st
2
  import os
3
- import pandas as pd
4
 
5
- from streamlit_option_menu import option_menu
6
  from bardapi import Bard
7
- from getvalues import getValues
8
- from pymongo import MongoClient
9
- from transformers import pipeline, Conversation
10
 
11
 
12
 
13
- classifyr = pipeline("zero-shot-classification")
14
 
15
- convo = pipeline("conversational")
16
 
17
- # classifi = pipeline(model="facebook/bart-large-mnli")
18
 
19
- uri = os.environ["MONGO_CONNECTION_STRING"]
20
- client = MongoClient(uri, tlsCertificateKeyFile="database/cert.pem")
21
 
22
- db = client["myapp"]
23
 
24
- col = db["reminders"]
25
 
26
  bardkey = os.environ.get("BARD_API_KEY")
27
 
28
  bard = Bard(token=bardkey)
29
 
30
- def view_rem():
31
- allrem = list(col.find())
32
- remdata = pd.DataFrame(allrem)
33
- st.dataframe(remdata)
34
 
35
 
36
  def Chatbot():
@@ -66,9 +66,9 @@ def Chatbot():
66
  Chatbot()
67
 
68
 
69
- def Create_Reminder():
70
- st.title("Create Reminder")
71
- message = st.text_input("Share your plan of today")
72
- time = str(st.time_input("Time"))
73
- date = str(st.date_input("Date"))
74
 
 
1
  import streamlit as st
2
  import os
3
+ # import pandas as pd
4
 
5
+ # from streamlit_option_menu import option_menu
6
  from bardapi import Bard
7
+ # from getvalues import getValues
8
+ # from pymongo import MongoClient
9
+ # from transformers import pipeline, Conversation
10
 
11
 
12
 
13
+ # classifyr = pipeline("zero-shot-classification")
14
 
15
+ # convo = pipeline("conversational")
16
 
17
+ # # classifi = pipeline(model="facebook/bart-large-mnli")
18
 
19
+ # uri = os.environ["MONGO_CONNECTION_STRING"]
20
+ # client = MongoClient(uri, tlsCertificateKeyFile="database/cert.pem")
21
 
22
+ # db = client["myapp"]
23
 
24
+ # col = db["reminders"]
25
 
26
  bardkey = os.environ.get("BARD_API_KEY")
27
 
28
  bard = Bard(token=bardkey)
29
 
30
+ # def view_rem():
31
+ # allrem = list(col.find())
32
+ # remdata = pd.DataFrame(allrem)
33
+ # st.dataframe(remdata)
34
 
35
 
36
  def Chatbot():
 
66
  Chatbot()
67
 
68
 
69
+ # def Create_Reminder():
70
+ # st.title("Create Reminder")
71
+ # message = st.text_input("Share your plan of today")
72
+ # time = str(st.time_input("Time"))
73
+ # date = str(st.date_input("Date"))
74