Spaces:
Sleeping
Sleeping
vaste commit
Browse files- app.py +1 -1
- resource.py +1 -12
app.py
CHANGED
@@ -13,7 +13,7 @@ def main():
|
|
13 |
web_scrape(user_url)
|
14 |
curr_path = data_cloning()
|
15 |
query = analyse()
|
16 |
-
response_gpt = llm_chain(query)
|
17 |
# Display the response
|
18 |
st.text_area("Bot Response:", value=response_gpt, height=100)
|
19 |
|
|
|
13 |
web_scrape(user_url)
|
14 |
curr_path = data_cloning()
|
15 |
query = analyse()
|
16 |
+
response_gpt = llm_chain.run(query)
|
17 |
# Display the response
|
18 |
st.text_area("Bot Response:", value=response_gpt, height=100)
|
19 |
|
resource.py
CHANGED
@@ -5,8 +5,7 @@ from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
|
5 |
import os
|
6 |
|
7 |
|
8 |
-
|
9 |
-
"""
|
10 |
You are a friendly chatbot assistant you are going to evaluate a Github Repo i analysed all the repos and made a report
|
11 |
i'm gonna give a report you just refer the below table
|
12 |
|
@@ -27,16 +26,6 @@ Report: {question}
|
|
27 |
Answer:"""
|
28 |
|
29 |
|
30 |
-
|
31 |
-
template = """
|
32 |
-
You are a friendly chatbot assistant that responds in a conversational
|
33 |
-
manner to users questions. Keep the answers short, unless specifically
|
34 |
-
asked by the user to elaborate on something.
|
35 |
-
|
36 |
-
Question: {question}
|
37 |
-
|
38 |
-
Answer:"""
|
39 |
-
|
40 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
41 |
|
42 |
#hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin", filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir="/code")
|
|
|
5 |
import os
|
6 |
|
7 |
|
8 |
+
template ="""
|
|
|
9 |
You are a friendly chatbot assistant you are going to evaluate a Github Repo i analysed all the repos and made a report
|
10 |
i'm gonna give a report you just refer the below table
|
11 |
|
|
|
26 |
Answer:"""
|
27 |
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
prompt = PromptTemplate(template=template, input_variables=["question"])
|
30 |
|
31 |
#hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin", filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir="/code")
|