vishwask commited on
Commit
8e69b68
1 Parent(s): 501f0ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -3,23 +3,21 @@
3
  #import sys
4
  #sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
5
 
6
-
7
  import os
 
8
 
9
- print(os.getcwd())
10
- print('dir here:')
11
- os.system('ls -d */')
12
 
13
- os.system('wget -q https://github.com/PanQiWei/AutoGPTQ/releases/download/v0.4.1/auto_gptq-0.4.1+cu118-cp310-cp310-linux_x86_64.whl')
 
14
  os.system('pip install -qqq auto_gptq-0.4.1+cu118-cp310-cp310-linux_x86_64.whl --progress-bar off')
15
- #os.system('apt-get install poppler-utils')
16
 
 
17
  import uuid
18
  #import replicate
19
  import requests
20
  import streamlit as st
21
  from streamlit.logger import get_logger
22
- import torch
23
  from auto_gptq import AutoGPTQForCausalLM
24
  from langchain import HuggingFacePipeline, PromptTemplate
25
  from langchain.chains import RetrievalQA
 
3
  #import sys
4
  #sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
5
 
 
6
  import os
7
+ import torch
8
 
 
 
 
9
 
10
+
11
+ os.system('wget -q https://github.com/PanQiWei/AutoGPTQ/releases/download/v0.4.2/auto_gptq-0.4.2+cu118-cp310-cp310-linux_x86_64.whl')
12
  os.system('pip install -qqq auto_gptq-0.4.1+cu118-cp310-cp310-linux_x86_64.whl --progress-bar off')
13
+ #os.system('curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ tee /etc/apt/sources.list.d/nvidia-container-toolkit.list ')
14
 
15
+ print(f"Is CUDA available: {torch.cuda.is_available()}")
16
  import uuid
17
  #import replicate
18
  import requests
19
  import streamlit as st
20
  from streamlit.logger import get_logger
 
21
  from auto_gptq import AutoGPTQForCausalLM
22
  from langchain import HuggingFacePipeline, PromptTemplate
23
  from langchain.chains import RetrievalQA