Molchevsky commited on
Commit
e71ecba
·
verified ·
1 Parent(s): 68ead79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -2,6 +2,21 @@ import gradio as gr
2
  from huggingface_hub import hf_hub_download
3
  from llama_cpp import Llama
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  # Download the GGUF model file from the repo
6
  model_repo = "Molchevsky/ai_resume"
7
  model_filename = "merged-Q6_K.gguf"
 
2
  from huggingface_hub import hf_hub_download
3
  from llama_cpp import Llama
4
 
5
+ import subprocess
6
+ import sys, platform
7
+ from importlib import metadata as md
8
+
9
+
10
+ #Install and Compile wheel at cost of 5minutes
11
+ subprocess.run("pip install -V llama_cpp_python==0.3.15", shell=True)
12
+
13
+ #Add Log to show all versions
14
+ print("Python:", platform.python_version(), sys.implementation.name)
15
+ print("OS:", platform.uname())
16
+ print("\n".join(sorted(f"{d.metadata['Name']}=={d.version}" for d in md.distributions())))
17
+
18
+
19
+
20
  # Download the GGUF model file from the repo
21
  model_repo = "Molchevsky/ai_resume"
22
  model_filename = "merged-Q6_K.gguf"