bako96 commited on
Commit
856fe31
·
verified ·
1 Parent(s): eb2774b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def get_youtube_channel_info(channel_name: str) -> str:
28
  if search_results and len(search_results) > 0:
29
  top_result = search_results[0] # Get the first result
30
  print(f"Top search result: {top_result}") # Debug print statement
31
- return f"Top search result for '{channel_name}': {top_result}"
32
  else:
33
  print(f"No results found for '{channel_name}'.") # Debug print statement
34
  return f"No information found for YouTube channel '{channel_name}'."
 
28
  if search_results and len(search_results) > 0:
29
  top_result = search_results[0] # Get the first result
30
  print(f"Top search result: {top_result}") # Debug print statement
31
+ return f"Top search result for '{channel_name}': {search_results[0:3]}"
32
  else:
33
  print(f"No results found for '{channel_name}'.") # Debug print statement
34
  return f"No information found for YouTube channel '{channel_name}'."