raannakasturi
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -23,18 +23,6 @@ def clear_everything(pdf_file, summary_output, info):
|
|
23 |
info = None
|
24 |
return pdf_file, summary_output, info
|
25 |
|
26 |
-
print("Checking for LLM model...")
|
27 |
-
while not os.path.exists("Llama-3.2-1B-Instruct-Q8_0.gguf"):
|
28 |
-
if not os.path.exists("/usr/bin/curl"):
|
29 |
-
print("Curl not found. Installing curl...")
|
30 |
-
subprocess.run(["apt-get" "update"])
|
31 |
-
subprocess.run(["apt-get" "install" "curl"])
|
32 |
-
else:
|
33 |
-
print("Curl found. Installing curl...")
|
34 |
-
print("Downloading LLM model...")
|
35 |
-
subprocess.run(["curl", "-o", "./Llama-3.2-1B-Instruct-Q8_0.gguf", "https://huggingface.co/bartowski/Llama-3.2-1B-Instruct-GGUF/resolve/main/Llama-3.2-1B-Instruct-Q8_0.gguf?download=true"])
|
36 |
-
print("LLM model downloaded successfully.")
|
37 |
-
|
38 |
print("Loading LLM model...")
|
39 |
llm = load_llm_model()
|
40 |
print("Building app...")
|
|
|
23 |
info = None
|
24 |
return pdf_file, summary_output, info
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
print("Loading LLM model...")
|
27 |
llm = load_llm_model()
|
28 |
print("Building app...")
|