Spaces:
Runtime error
Runtime error
Commit
·
7054e4c
1
Parent(s):
3a433e4
Update app.py
Browse files
app.py
CHANGED
@@ -198,9 +198,10 @@ def AIProdust_batch_estimate(systemText,prompt,inputFile,textInput_APIKEY,temper
|
|
198 |
sheet=book.active
|
199 |
maxnum=sheet.max_row
|
200 |
for i in range(2,maxnum+1):
|
201 |
-
|
202 |
-
|
203 |
-
|
|
|
204 |
|
205 |
AI_Produst_estimate(systemText,prompt,quesList,gptVersion,fintuneGPTVersion,temperature,num,outputPath,Checkbox,progress)
|
206 |
return outputPath
|
|
|
198 |
sheet=book.active
|
199 |
maxnum=sheet.max_row
|
200 |
for i in range(2,maxnum+1):
|
201 |
+
if sheet.cell(i,1).value is not None:
|
202 |
+
ques=str.strip(sheet.cell(i,1).value)
|
203 |
+
if len(ques)!=0:
|
204 |
+
quesList.append(ques)
|
205 |
|
206 |
AI_Produst_estimate(systemText,prompt,quesList,gptVersion,fintuneGPTVersion,temperature,num,outputPath,Checkbox,progress)
|
207 |
return outputPath
|