Wendyy commited on
Commit
2ec4af0
1 Parent(s): f93fad8

add database

Browse files
MyRecipeChatbot.py CHANGED
@@ -95,7 +95,8 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
95
  multiselect=False,
96
  value=REPLY_LANGUAGES[0],
97
  )
98
- index_files = gr.Files(label="上传索引文件", type="file", multiple=True)
 
99
  two_column = gr.Checkbox(label="双栏pdf", value=advance_docs["pdf"].get("two_column", False))
100
  # TODO: 公式ocr
101
  # formula_ocr = gr.Checkbox(label="识别公式", value=advance_docs["pdf"].get("formula_ocr", False))
 
95
  multiselect=False,
96
  value=REPLY_LANGUAGES[0],
97
  )
98
+ # index_files = gr.Files(label="上传索引文件", type="file", multiple=True)
99
+ index_files = ['database/cuc-pure.txt']
100
  two_column = gr.Checkbox(label="双栏pdf", value=advance_docs["pdf"].get("two_column", False))
101
  # TODO: 公式ocr
102
  # formula_ocr = gr.Checkbox(label="识别公式", value=advance_docs["pdf"].get("formula_ocr", False))
README.md CHANGED
@@ -1,11 +1,11 @@
1
  ---
2
- title: ChuanhuChatGPT
3
  emoji: 🐯
4
  colorFrom: green
5
  colorTo: red
6
  sdk: gradio
7
  sdk_version: 3.24.1
8
- app_file: ChuanhuChatbot.py
9
  pinned: false
10
  license: gpl-3.0
11
  duplicated_from: JohnSmith9982/ChuanhuChatGPT
 
1
  ---
2
+ title: MyRecipe
3
  emoji: 🐯
4
  colorFrom: green
5
  colorTo: red
6
  sdk: gradio
7
  sdk_version: 3.24.1
8
+ app_file: MyRecipeChatbot.py
9
  pinned: false
10
  license: gpl-3.0
11
  duplicated_from: JohnSmith9982/ChuanhuChatGPT
chatgpt - windows.bat CHANGED
@@ -1,8 +1,8 @@
1
  @echo off
2
- echo Opening ChuanhuChatGPT...
3
 
4
  REM Open powershell via bat
5
- start powershell.exe -NoExit -Command "python ./ChuanhuChatbot.py"
6
 
7
  REM The web page can be accessed with delayed start http://127.0.0.1:7860/
8
  ping -n 5 127.0.0.1>nul
@@ -11,4 +11,4 @@ REM access chargpt via your default browser
11
  start "" "http://127.0.0.1:7860/"
12
 
13
 
14
- echo Finished opening ChuanhuChatGPT (http://127.0.0.1:7860/).
 
1
  @echo off
2
+ echo Opening MyRecipeChatbot...
3
 
4
  REM Open powershell via bat
5
+ start powershell.exe -NoExit -Command "python ./MyRecipeChatbot.py"
6
 
7
  REM The web page can be accessed with delayed start http://127.0.0.1:7860/
8
  ping -n 5 127.0.0.1>nul
 
11
  start "" "http://127.0.0.1:7860/"
12
 
13
 
14
+ echo Finished opening MyRecipeChatbot (http://127.0.0.1:7860/).
run_Linux.sh CHANGED
@@ -12,7 +12,7 @@ pwd
12
 
13
  if ! git status -uno | grep 'up to date' > /dev/null; then
14
  # 如果有更新,关闭当前运行的服务器
15
- pkill -f ChuanhuChatbot.py
16
 
17
  # 拉取最新更改
18
  git pull
@@ -21,5 +21,5 @@ if ! git status -uno | grep 'up to date' > /dev/null; then
21
  pip3 install -r requirements.txt
22
 
23
  # 重新启动服务器
24
- nohup python3 ChuanhuChatbot.py &
25
  fi
 
12
 
13
  if ! git status -uno | grep 'up to date' > /dev/null; then
14
  # 如果有更新,关闭当前运行的服务器
15
+ pkill -f MyRecipeChatbot.py
16
 
17
  # 拉取最新更改
18
  git pull
 
21
  pip3 install -r requirements.txt
22
 
23
  # 重新启动服务器
24
+ nohup python3 MyRecipeChatbot.py &
25
  fi
run_Windows.bat CHANGED
@@ -1,5 +1,5 @@
1
  @echo off
2
- echo Opening ChuanhuChatGPT...
3
 
4
  REM Open powershell via bat
5
- start powershell.exe -NoExit -Command "python ./ChuanhuChatbot.py"
 
1
  @echo off
2
+ echo Opening MyRecipeChatbot...
3
 
4
  REM Open powershell via bat
5
+ start powershell.exe -NoExit -Command "python ./MyRecipeChatbot.py"
run_macOS.command CHANGED
@@ -12,7 +12,7 @@ pwd
12
 
13
  if ! git status -uno | grep 'up to date' > /dev/null; then
14
  # 如果有更新,关闭当前运行的服务器
15
- pkill -f ChuanhuChatbot.py
16
 
17
  # 拉取最新更改
18
  git pull
@@ -21,5 +21,5 @@ if ! git status -uno | grep 'up to date' > /dev/null; then
21
  pip3 install -r requirements.txt
22
 
23
  # 重新启动服务器
24
- nohup python3 ChuanhuChatbot.py &
25
  fi
 
12
 
13
  if ! git status -uno | grep 'up to date' > /dev/null; then
14
  # 如果有更新,关闭当前运行的服务器
15
+ pkill -f MyRecipeChatbot.py
16
 
17
  # 拉取最新更改
18
  git pull
 
21
  pip3 install -r requirements.txt
22
 
23
  # 重新启动服务器
24
+ nohup python3 MyRecipeChatbot.py &
25
  fi