tatianija commited on
Commit
4ee08d3
·
verified ·
1 Parent(s): 8c7ecf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -778,7 +778,8 @@ def fetch_questions() -> Tuple[str, Optional[pd.DataFrame]]:
778
  if file_name and file_name.strip():
779
  has_file = True
780
  file_info = file_name
781
- file_data = requests.get(f"{files_url}/{item_id}")
 
782
 
783
  # Check if question contains URLs
784
  question_text = item.get("question", "")
@@ -787,13 +788,13 @@ def fetch_questions() -> Tuple[str, Optional[pd.DataFrame]]:
787
  file_info += "URLs in text, "
788
 
789
  if file_info:
790
- file_info = attachment_info.rstrip(", ")
791
 
792
  display_data.append({
793
  "Task ID": item.get("task_id", "Unknown"),
794
  "Question": question_text[:100] + "..." if len(question_text) > 100 else question_text,
795
  "Has Attachments": "Yes" if has_file else "No",
796
- "Attachment Info": attachment_info
797
  })
798
 
799
  df = pd.DataFrame(display_data)
 
778
  if file_name and file_name.strip():
779
  has_file = True
780
  file_info = file_name
781
+ file_data = requests.get(f"{files_url}/{item_id}")
782
+ print(file_data)
783
 
784
  # Check if question contains URLs
785
  question_text = item.get("question", "")
 
788
  file_info += "URLs in text, "
789
 
790
  if file_info:
791
+ file_info = file_info.rstrip(", ")
792
 
793
  display_data.append({
794
  "Task ID": item.get("task_id", "Unknown"),
795
  "Question": question_text[:100] + "..." if len(question_text) > 100 else question_text,
796
  "Has Attachments": "Yes" if has_file else "No",
797
+ "Attachment Info": file_info
798
  })
799
 
800
  df = pd.DataFrame(display_data)