CoralLeiCN
commited on
Commit
·
eed2d7f
1
Parent(s):
656e695
Remove unused imports from score.py, utils.py, and app.py for cleaner code
Browse files- agent/score.py +0 -1
- agent/utils.py +0 -1
- app.py +1 -7
agent/score.py
CHANGED
@@ -4,7 +4,6 @@ import string
|
|
4 |
import warnings
|
5 |
|
6 |
|
7 |
-
|
8 |
def normalize_number_str(number_str: str) -> float:
|
9 |
# we replace these common units and commas to allow
|
10 |
# conversion to float
|
|
|
4 |
import warnings
|
5 |
|
6 |
|
|
|
7 |
def normalize_number_str(number_str: str) -> float:
|
8 |
# we replace these common units and commas to allow
|
9 |
# conversion to float
|
agent/utils.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
|
2 |
from google import genai
|
3 |
from smolagents import LiteLLMModel
|
4 |
|
|
|
|
|
1 |
from google import genai
|
2 |
from smolagents import LiteLLMModel
|
3 |
|
app.py
CHANGED
@@ -1,17 +1,10 @@
|
|
1 |
-
import inspect
|
2 |
import os
|
3 |
-
import time
|
4 |
|
5 |
import gradio as gr
|
6 |
import pandas as pd
|
7 |
import requests
|
8 |
-
from pydantic import BaseModel
|
9 |
-
from smolagents import CodeAgent, WebSearchTool
|
10 |
|
11 |
from agent import BasicAgent
|
12 |
-
from agent.prompts import system_prompt
|
13 |
-
from agent.tools import TranscribeYoutubeVideo
|
14 |
-
from agent.utils import gemini_model_liteLLM
|
15 |
|
16 |
# --- Constants ---
|
17 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
@@ -111,6 +104,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
111 |
"agent_code": agent_code,
|
112 |
"answers": answers_payload,
|
113 |
}
|
|
|
114 |
status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
|
115 |
print(status_update)
|
116 |
|
|
|
|
|
1 |
import os
|
|
|
2 |
|
3 |
import gradio as gr
|
4 |
import pandas as pd
|
5 |
import requests
|
|
|
|
|
6 |
|
7 |
from agent import BasicAgent
|
|
|
|
|
|
|
8 |
|
9 |
# --- Constants ---
|
10 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
104 |
"agent_code": agent_code,
|
105 |
"answers": answers_payload,
|
106 |
}
|
107 |
+
|
108 |
status_update = f"Agent finished. Submitting {len(answers_payload)} answers for user '{username}'..."
|
109 |
print(status_update)
|
110 |
|