Spaces:
Sleeping
Sleeping
docker tryyyyy1 commit
Browse files- app.py +2 -2
- resource.py +12 -1
app.py
CHANGED
@@ -12,8 +12,8 @@ def main():
|
|
12 |
if st.button("Submit"):
|
13 |
web_scrape(user_url)
|
14 |
curr_path = data_cloning()
|
15 |
-
|
16 |
-
response_gpt = llm_chain(
|
17 |
# Display the response
|
18 |
st.text_area("Bot Response:", value=response_gpt, height=100)
|
19 |
|
|
|
12 |
if st.button("Submit"):
|
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 |
|
resource.py
CHANGED
@@ -5,7 +5,8 @@ from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
|
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,6 +27,16 @@ Report: {question}
|
|
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")
|
|
|
5 |
import os
|
6 |
|
7 |
|
8 |
+
#template =
|
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 |
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")
|