ashwinbssj commited on
Commit
d82f2d7
·
verified ·
1 Parent(s): 1cee8b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -2,12 +2,9 @@
2
  import streamlit as st
3
 
4
 
5
- from langchain.chat_models import ChatOpenAI
6
- from langchain.schema import (
7
- AIMessage,
8
- HumanMessage,
9
- SystemMessage
10
- )
11
 
12
  # From here down is all the StreamLit UI.
13
  st.set_page_config(page_title="LangChain Demo", page_icon=":robot:")
@@ -38,7 +35,7 @@ def get_text():
38
  return input_text
39
 
40
 
41
- chat = ChatOpenAI(temperature=0)
42
 
43
 
44
 
 
2
  import streamlit as st
3
 
4
 
5
+ from langchian import HuggingFaceHub
6
+
7
+ llm=HuggingFaceHub(repo_id="google/flan-t5-large")
 
 
 
8
 
9
  # From here down is all the StreamLit UI.
10
  st.set_page_config(page_title="LangChain Demo", page_icon=":robot:")
 
35
  return input_text
36
 
37
 
38
+
39
 
40
 
41