Spaces:
Sleeping
Sleeping
AjithBharadwaj
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def main():
|
|
49 |
llm = HuggingFaceEndpoint(
|
50 |
repo_id=repo_id, max_length=128, temperature=0.5, huggingfacehub_api_token=HF_TOKEN
|
51 |
)
|
52 |
-
|
53 |
# print(llm_chain.run(question))
|
54 |
aa = llm_chain.run({"topic": topic,"words":word_count,"role":role})
|
55 |
st.write(aa)
|
|
|
49 |
llm = HuggingFaceEndpoint(
|
50 |
repo_id=repo_id, max_length=128, temperature=0.5, huggingfacehub_api_token=HF_TOKEN
|
51 |
)
|
52 |
+
llm_chain = LLMChain(prompt=prompt, llm=llm)
|
53 |
# print(llm_chain.run(question))
|
54 |
aa = llm_chain.run({"topic": topic,"words":word_count,"role":role})
|
55 |
st.write(aa)
|