mnosouhi96 commited on
Commit
cbf5963
·
1 Parent(s): b0c880e

change code

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +13 -4
app.py CHANGED
@@ -15,10 +15,10 @@ class BasicAgent:
15
  print(f"Agent returning fixed answer: {fixed_answer}")
16
  return fixed_answer
17
 
18
- def run_and_submit_all(profile: gr.OAuthProfile | None):
19
  space_id = SPACE_ID
20
  if profile:
21
- username = f"{profile.username}"
22
  print(f"User logged in: {username}")
23
  else:
24
  print("User not logged in.")
 
15
  print(f"Agent returning fixed answer: {fixed_answer}")
16
  return fixed_answer
17
 
18
+ def run_and_submit_all(profile, evt=None):
19
  space_id = SPACE_ID
20
  if profile:
21
+ username = f"{getattr(profile, 'username', '')}"
22
  print(f"User logged in: {username}")
23
  else:
24
  print("User not logged in.")
requirements.txt CHANGED
@@ -1,6 +1,15 @@
 
 
 
 
 
 
 
 
 
 
1
  gradio[oauth]>=4.44.0
2
- requests
3
- smolagents>=0.0.23
4
- duckduckgo-search>=6.1.0
5
  pandas>=2.2.0
6
- python-dotenv>=1.0.1
 
 
1
+ # gradio[oauth]>=4.44.0
2
+ # requests
3
+ # smolagents>=0.0.23
4
+ # duckduckgo-search>=6.1.0
5
+ # pandas>=2.2.0
6
+ # python-dotenv>=1.0.1
7
+ # gradio
8
+ # requests
9
+ # smolagents
10
+ # smolagents[openai]
11
  gradio[oauth]>=4.44.0
12
+ requests>=2.31.0
 
 
13
  pandas>=2.2.0
14
+ itsdangerous>=2.1.2
15
+ authlib>=1.3.0