ffreemt commited on
Commit
9233258
·
1 Parent(s): 5f4a380

Pin gradio 3.28.3

Browse files
Files changed (3) hide show
  1. README.md +2 -1
  2. app.py +1 -1
  3. requirements.txt +2 -0
README.md CHANGED
@@ -4,7 +4,8 @@ emoji: 😁
4
  colorFrom: blue
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: 3.24.1
 
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
4
  colorFrom: blue
5
  colorTo: blue
6
  sdk: gradio
7
+ # sdk_version: 3.24.1
8
+ sdk_version: 3.28.3
9
  app_file: app.py
10
  pinned: false
11
  license: apache-2.0
app.py CHANGED
@@ -143,7 +143,7 @@ def reinit_model(llm_model, embedding_model, history):
143
  except Exception as e:
144
  model = None
145
  logger.error(e)
146
- model_status = """模型未成功重新加载,请重新选择后点击"加载模型"按钮"""
147
  return history + [[None, model_status]]
148
 
149
 
 
143
  except Exception as e:
144
  model = None
145
  logger.error(e)
146
+ model_status = f"""{model} - {e}: 模型未成功重新加载,请重新选择后点击"加载模型"按钮"""
147
  return history + [[None, model_status]]
148
 
149
 
requirements.txt CHANGED
@@ -2,6 +2,8 @@
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
 
2
  # uncomment the next line for cpu
3
  --extra-index-url https://download.pytorch.org/whl/cpu
4
  torch
5
+
6
+ # may need to set gradio==3.28.3
7
  gradio
8
  similarities
9
  sentencepiece