Toumaima commited on
Commit
3b11364
·
verified ·
1 Parent(s): d8b8825

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -74,12 +74,12 @@ class BasicAgent:
74
  # --- Determine HF Space Runtime URL and Repo URL ---
75
  space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
76
 
77
- if profile:
78
- username= f"{profile.username}"
79
- print(f"User logged in: {username}")
80
- else:
81
- print("User not logged in.")
82
- return "Please Login to Hugging Face with the button.", None
83
 
84
  api_url = DEFAULT_API_URL
85
  questions_url = f"{api_url}/questions"
 
74
  # --- Determine HF Space Runtime URL and Repo URL ---
75
  space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
76
 
77
+ if profile:
78
+ username= f"{profile.username}"
79
+ print(f"User logged in: {username}")
80
+ else:
81
+ print("User not logged in.")
82
+ return "Please Login to Hugging Face with the button.", None
83
 
84
  api_url = DEFAULT_API_URL
85
  questions_url = f"{api_url}/questions"