garyd1 commited on
Commit
304ffc8
·
verified ·
1 Parent(s): c31ff76
Files changed (1) hide show
  1. app.py +24 -0
app.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #Generic
2
+ import os
3
+ import keyfile
4
+ import streamlit as st
5
+ import warnings
6
+ warnings.filerwarnings("ignore")
7
+
8
+ #Langchain Packages
9
+ from langchain_google_genai import ChatGoogleGenerativeAI
10
+ from langchain.schema import HumanMessage, SystemMessage, AIMessage
11
+
12
+ #First message that will pop on the screen
13
+ st.set_page_config(page title = "Magical Healer")
14
+ st.header("Welcome, How can I help you?")
15
+
16
+ #Configure the key
17
+ os.environ["GOOGLE_API_KEY"] = keyfile.GOOGLEKEY
18
+
19
+
20
+ #User message
21
+ def get_text():
22
+ input_text=st.text_input("You: ", key=input)
23
+ return input_text
24
+