civerson916 commited on
Commit
7fd881b
·
verified ·
1 Parent(s): de4aa82

Update app.py

Browse files

specified "local file path" when providing the file_name value

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -298,7 +298,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
298
  # check if the file_name is not empty
299
  if item.get("file_name"):
300
  # question_text = f"{question_text} Here is the file: https://agents-course-unit4-scoring.hf.space/files/{item.get('task_id')}"
301
- question_text = f"{question_text} Here is the file: files/{item.get('file_name')}"
302
 
303
  # wikipedia
304
  # if item.get("task_id") == "4fc2f1ae-8625-45b5-ab34-ad4433bc21f8"
 
298
  # check if the file_name is not empty
299
  if item.get("file_name"):
300
  # question_text = f"{question_text} Here is the file: https://agents-course-unit4-scoring.hf.space/files/{item.get('task_id')}"
301
+ question_text = f"{question_text} Here is the local file path: files/{item.get('file_name')}"
302
 
303
  # wikipedia
304
  # if item.get("task_id") == "4fc2f1ae-8625-45b5-ab34-ad4433bc21f8"