Raffaele Terribile commited on
Commit
f0a56fc
·
unverified ·
1 Parent(s): ffdb068

Aggiungi il login di HuggingFace

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -6,6 +6,10 @@ import pandas as pd
6
 
7
  from smolagents import CodeAgent, InferenceClientModel, VisitWebpageTool, PythonInterpreterTool, WebSearchTool, WikipediaSearchTool, FinalAnswerTool, Tool, tool # GoogleSearchTool (usa SERPAPI_API_KEY), DuckDuckGoSearchTool
8
 
 
 
 
 
9
  # (Keep Constants as is)
10
  # --- Constants ---
11
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
 
6
 
7
  from smolagents import CodeAgent, InferenceClientModel, VisitWebpageTool, PythonInterpreterTool, WebSearchTool, WikipediaSearchTool, FinalAnswerTool, Tool, tool # GoogleSearchTool (usa SERPAPI_API_KEY), DuckDuckGoSearchTool
8
 
9
+ from huggingface_hub import notebook_login
10
+
11
+ notebook_login()
12
+
13
  # (Keep Constants as is)
14
  # --- Constants ---
15
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
requirements.txt CHANGED
@@ -4,4 +4,4 @@ pandas
4
  smolagents
5
  wikipedia-api
6
  # duckduckgo-search
7
- # huggingface_hub
 
4
  smolagents
5
  wikipedia-api
6
  # duckduckgo-search
7
+ huggingface_hub