tsumarios commited on
Commit
871683d
·
verified ·
1 Parent(s): bfbfe70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,6 +7,7 @@ import pandas as pd
7
  # (Keep Constants as is)
8
  # --- Constants ---
9
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
 
10
 
11
 
12
  # --- Awesome Agent Definition ---
@@ -15,7 +16,7 @@ class AwesomeAgent:
15
 
16
  def __init__(self):
17
  self.api_token = os.getenv("HF_TOKEN")
18
- self.api_url = DEFAULT_API_URL
19
  self.headers = {
20
  "Authorization": f"Bearer {self.api_token}",
21
  "Content-Type": "application/json"
 
7
  # (Keep Constants as is)
8
  # --- Constants ---
9
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
10
+ LLM_API_URL = "https://api-inference.huggingface.co/models/deepset/roberta-base-squad2"
11
 
12
 
13
  # --- Awesome Agent Definition ---
 
16
 
17
  def __init__(self):
18
  self.api_token = os.getenv("HF_TOKEN")
19
+ self.api_url = LLM_API_URL
20
  self.headers = {
21
  "Authorization": f"Bearer {self.api_token}",
22
  "Content-Type": "application/json"