Spaces:
Runtime error
Runtime error
Commit
·
6d0cc0a
1
Parent(s):
431aea4
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from langchain import PromptTemplate, HuggingFaceHub, LLMChain
|
3 |
import os
|
4 |
-
llm=HuggingFaceHub(repo_id="
|
5 |
template = 'question:{question}'
|
6 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
7 |
chain = LLMChain(llm=llm, prompt=prompt)
|
|
|
1 |
import gradio as gr
|
2 |
from langchain import PromptTemplate, HuggingFaceHub, LLMChain
|
3 |
import os
|
4 |
+
llm=HuggingFaceHub(repo_id="google/flan-t5-xxl")
|
5 |
template = 'question:{question}'
|
6 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
7 |
chain = LLMChain(llm=llm, prompt=prompt)
|