Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,15 +31,15 @@ llm = HuggingFaceHub(repo_id=repo_id, #for Llama2
|
|
31 |
chain = load_summarize_chain(llm, chain_type="stuff")
|
32 |
|
33 |
#**************************************************************#
|
34 |
-
url=st.text_input("Enter webiste URL to summarize (format: https://www.usinoip.com):")
|
35 |
#loader = WebBaseLoader("https://www.usinoip.com/")
|
36 |
-
loader = WebBaseLoader(url)
|
37 |
-
with st.spinner("AI Thinking...Please wait a while to Cheers!"):
|
38 |
-
docs = loader.load()
|
39 |
-
result=chain.run(docs)
|
40 |
-
print(result)
|
41 |
-
st.write("AI Summarization:")
|
42 |
-
st.write(result)
|
43 |
#**************************************************************#
|
44 |
|
45 |
#**************************************************************#
|
|
|
31 |
chain = load_summarize_chain(llm, chain_type="stuff")
|
32 |
|
33 |
#**************************************************************#
|
34 |
+
#url=st.text_input("Enter webiste URL to summarize (format: https://www.usinoip.com):")
|
35 |
#loader = WebBaseLoader("https://www.usinoip.com/")
|
36 |
+
#loader = WebBaseLoader(url)
|
37 |
+
#with st.spinner("AI Thinking...Please wait a while to Cheers!"):
|
38 |
+
# docs = loader.load()
|
39 |
+
# result=chain.run(docs)
|
40 |
+
# print(result)
|
41 |
+
# st.write("AI Summarization:")
|
42 |
+
# st.write(result)
|
43 |
#**************************************************************#
|
44 |
|
45 |
#**************************************************************#
|