qianmuuq commited on
Commit
0b86953
1 Parent(s): 76cc215

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -157,8 +157,9 @@ def getChat(text,model,tokenizer):
157
  f = 0
158
  if tt[0][0].isdigit():
159
  size_float = [float(i) for i in tt]
160
- if size_float>4:
161
- f = 1
 
162
  else:
163
  size_str = "无"
164
 
 
157
  f = 0
158
  if tt[0][0].isdigit():
159
  size_float = [float(i) for i in tt]
160
+ for kk in size_float:
161
+ if kk>=4:
162
+ f = 1
163
  else:
164
  size_str = "无"
165