vlapparov commited on
Commit
b4cb1be
·
verified ·
1 Parent(s): 9f49808

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -161,7 +161,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
161
  except Exception as e:
162
  print(f"Error instantiating agent: {e}")
163
  return f"Error initializing agent: {e}", None
164
- # In the case of an app running as a hugging Face space, this link points toward your
165
  # codebase ( usefull for others so please keep it public)
166
  agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
167
  print(agent_code)
@@ -229,8 +229,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
229
  f"Submission Successful!\n"
230
  f"User: {result_data.get('username')}\n"
231
  f"Overall Score: {result_data.get('score', 'N/A')}% "
232
- f"({result_data.get('correct_count', '?')}/{result_data.get('total_attempted',
233
- '?')} correct)\n"
234
  f"Message: {result_data.get('message', 'No message received.')}"
235
  )
236
  print("Submission successful.")
 
161
  except Exception as e:
162
  print(f"Error instantiating agent: {e}")
163
  return f"Error initializing agent: {e}", None
164
+ # In the case of an app running as a hugging Face space, this link points toward your
165
  # codebase ( usefull for others so please keep it public)
166
  agent_code = f"https://huggingface.co/spaces/{space_id}/tree/main"
167
  print(agent_code)
 
229
  f"Submission Successful!\n"
230
  f"User: {result_data.get('username')}\n"
231
  f"Overall Score: {result_data.get('score', 'N/A')}% "
232
+ f"({result_data.get('correct_count', '?')}/{result_data.get('total_attempted', '?')} correct)\n"
 
233
  f"Message: {result_data.get('message', 'No message received.')}"
234
  )
235
  print("Submission successful.")