ffreemt commited on
Commit
5f4a380
·
1 Parent(s): 6c55c6b
Files changed (4) hide show
  1. .gitignore +7 -0
  2. README.md +1 -1
  3. app.py +2 -1
  4. requirements.txt +4 -0
.gitignore ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ .venv
2
+ install-sw.sh
3
+ install-sw1.sh
4
+ okteto-up.bat
5
+ okteto.yml
6
+ start-sshd.sh
7
+ .stignore
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: ChatPDF
3
  emoji: 😁
4
  colorFrom: blue
5
  colorTo: blue
 
1
  ---
2
+ title: chatpdf
3
  emoji: 😁
4
  colorFrom: blue
5
  colorTo: blue
app.py CHANGED
@@ -209,7 +209,8 @@ Link in: [https://github.com/shibing624/ChatPDF](https://github.com/shibing624/C
209
 
210
  init_message = """欢迎使用 ChatPDF Web UI,可以直接提问或上传文件后提问 """
211
 
212
- with gr.Blocks(css=block_css) as demo:
 
213
  index_path, file_status, model_status = gr.State(""), gr.State(""), gr.State("")
214
  gr.Markdown(webui_title)
215
  with gr.Row():
 
209
 
210
  init_message = """欢迎使用 ChatPDF Web UI,可以直接提问或上传文件后提问 """
211
 
212
+ # css=block_css
213
+ with gr.Blocks() as demo:
214
  index_path, file_status, model_status = gr.State(""), gr.State(""), gr.State("")
215
  gr.Markdown(webui_title)
216
  with gr.Row():
requirements.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  gradio
2
  similarities
3
  sentencepiece
 
1
+ # pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
2
+ # uncomment the next line for cpu
3
+ --extra-index-url https://download.pytorch.org/whl/cpu
4
+ torch
5
  gradio
6
  similarities
7
  sentencepiece