vmalapaka commited on
Commit
ef2a76c
·
verified ·
1 Parent(s): d9e871f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -4,17 +4,17 @@ from langchain_community.llms import HuggingFaceEndpoint
4
 
5
  #Taking question as input from user
6
  def load_answer(question):
7
- llm=HuggingFaceEndpoint(repo_id="mistralai/Mistral-7B-Instruct-v0.2")
8
  answer=llm.invoke(question)
9
  return answer
10
 
11
- #App UI starts here
12
- st.set_page_config(page_title="LangChain Demo", page_icon=":robot:")
13
- st.header("LangChain Demo")
14
 
15
  #Gets the user input
16
  def get_text():
17
- input_text = st.text_input("You: ", key="input")
18
  return input_text
19
 
20
 
 
4
 
5
  #Taking question as input from user
6
  def load_answer(question):
7
+ llm=HuggingFaceEndpoint(repo_id="google/gemma-1.1-7b-it")
8
  answer=llm.invoke(question)
9
  return answer
10
 
11
+ #App UI
12
+ st.set_page_config(page_title="Question and Answers", page_icon=":robot:")
13
+ st.header("Question and Answers")
14
 
15
  #Gets the user input
16
  def get_text():
17
+ input_text = st.text_input("Enter your question here: ", key="input")
18
  return input_text
19
 
20