llamasrock commited on
Commit
b32063e
·
verified ·
1 Parent(s): 687fc2f

Update app.py

Browse files

Imported missing libraries

Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -3,10 +3,14 @@ import gradio as gr
3
  import requests
4
  import inspect
5
  import pandas as pd
 
 
 
6
 
7
  # (Keep Constants as is)
8
  # --- Constants ---
9
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
 
10
 
11
  # --- Basic Agent Definition ---
12
  # Agent capabilities required: Search the web, listen to audio recordings, watch YouTube videos (process the footage, not the transcript), work with Excel spreadsheets
@@ -30,6 +34,8 @@ class BasicAgent:
30
  print(f"Agent returning fixed answer: {fixed_answer}")
31
  return fixed_answer
32
 
 
 
33
  def run_and_submit_all( profile: gr.OAuthProfile | None):
34
  """
35
  Fetches all questions, runs the BasicAgent on them, submits all answers,
 
3
  import requests
4
  import inspect
5
  import pandas as pd
6
+ import os
7
+ from smolagents import LiteLLMModel, CodeAgent, tool
8
+ from google.genai.types import GoogleSearch
9
 
10
  # (Keep Constants as is)
11
  # --- Constants ---
12
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
13
+ GEMINI_API_KEY = os.get("Gemini_API_key")
14
 
15
  # --- Basic Agent Definition ---
16
  # Agent capabilities required: Search the web, listen to audio recordings, watch YouTube videos (process the footage, not the transcript), work with Excel spreadsheets
 
34
  print(f"Agent returning fixed answer: {fixed_answer}")
35
  return fixed_answer
36
 
37
+ agent =
38
+
39
  def run_and_submit_all( profile: gr.OAuthProfile | None):
40
  """
41
  Fetches all questions, runs the BasicAgent on them, submits all answers,