Spaces:
Build error
Build error
Update app.py
Browse files
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="
|
| 8 |
answer=llm.invoke(question)
|
| 9 |
return answer
|
| 10 |
|
| 11 |
-
#App UI
|
| 12 |
-
st.set_page_config(page_title="
|
| 13 |
-
st.header("
|
| 14 |
|
| 15 |
#Gets the user input
|
| 16 |
def get_text():
|
| 17 |
-
input_text = st.text_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 |
|