Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -143,10 +143,19 @@ def run_and_submit_all( profile: gr.OAuthProfile | None): | |
| 143 | 
             
            # --- Build Gradio Interface using Blocks ---
         | 
| 144 | 
             
            with gr.Blocks() as demo:
         | 
| 145 | 
             
                gr.Markdown("# Basic Agent Evaluation Runner")
         | 
| 146 | 
            -
             | 
| 147 | 
            -
                    " | 
| 148 | 
            -
                     | 
| 149 | 
            -
             | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 150 | 
             
                )
         | 
| 151 |  | 
| 152 | 
             
                gr.LoginButton()
         | 
|  | |
| 143 | 
             
            # --- Build Gradio Interface using Blocks ---
         | 
| 144 | 
             
            with gr.Blocks() as demo:
         | 
| 145 | 
             
                gr.Markdown("# Basic Agent Evaluation Runner")
         | 
| 146 | 
            +
                 gr.Markdown(
         | 
| 147 | 
            +
                    """
         | 
| 148 | 
            +
                    **Instructions:**
         | 
| 149 | 
            +
             | 
| 150 | 
            +
                    1.  Please clone this space, then modify the code to define your agent's logic within the `BasicAgent` class or outside if necessary.
         | 
| 151 | 
            +
                    2.  Log in to your Hugging Face account using the button below. This uses your HF username for submission.
         | 
| 152 | 
            +
                    3.  Click 'Run Evaluation & Submit All Answers' to fetch questions, run your agent, submit answers, and see the score.
         | 
| 153 | 
            +
             | 
| 154 | 
            +
                    ---
         | 
| 155 | 
            +
                    **Disclaimers:**
         | 
| 156 | 
            +
                    Once clicking on the "submit button, it can take quite some time ( this is the time for the agent to go through all the questions).
         | 
| 157 | 
            +
                    This space provides a basic setup and is intentionally sub-optimal to encourage you to develop your own, more robust solution. For instance for the delay process of the submit button, a solution could be to cache the answers and submit in a seperate action or even to answer the questions in async.
         | 
| 158 | 
            +
                    """
         | 
| 159 | 
             
                )
         | 
| 160 |  | 
| 161 | 
             
                gr.LoginButton()
         | 
 
			
