Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,12 +2,9 @@
|
|
2 |
import streamlit as st
|
3 |
|
4 |
|
5 |
-
from
|
6 |
-
|
7 |
-
|
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 |
-
|
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 |
|