civerson916 commited on
Commit
d11972c
·
verified ·
1 Parent(s): a5906a8

Update app.py

Browse files

testing only for file_name is not empty

Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -262,9 +262,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
262
  continue
263
  try:
264
  # check if the file_name is not empty
265
- # 99c9cc74-fdc8-46c6-8f8d-3ce2d3bfeea3"
266
- if item.get("task_id") == "99c9cc74-fdc8-46c6-8f8d-3ce2d3bfeea3":
267
- # if item.get("file_name"):
268
  # question_text = f"{question_text} Here is the file: https://agents-course-unit4-scoring.hf.space/files/{item.get('task_id')}"
269
  question_text = f"{question_text} Here is the file: files/{item.get('task_id')}"
270
  else:
 
262
  continue
263
  try:
264
  # check if the file_name is not empty
265
+ if item.get("file_name"):
 
 
266
  # question_text = f"{question_text} Here is the file: https://agents-course-unit4-scoring.hf.space/files/{item.get('task_id')}"
267
  question_text = f"{question_text} Here is the file: files/{item.get('task_id')}"
268
  else: