Upload app.py
Browse files
app.py
CHANGED
@@ -4,11 +4,12 @@
|
|
4 |
import streamlit as st
|
5 |
|
6 |
|
7 |
-
from langchain.llms import
|
|
|
8 |
|
9 |
#Function to return the response
|
10 |
def load_answer(question):
|
11 |
-
llm =
|
12 |
answer=llm(question)
|
13 |
return answer
|
14 |
|
|
|
4 |
import streamlit as st
|
5 |
|
6 |
|
7 |
+
from langchain.llms import HuggingFaceHub
|
8 |
+
|
9 |
|
10 |
#Function to return the response
|
11 |
def load_answer(question):
|
12 |
+
llm = HuggingFaceHub(model_name="google/flan-t5-large")
|
13 |
answer=llm(question)
|
14 |
return answer
|
15 |
|