keenthinker commited on
Commit
aad51af
·
verified ·
1 Parent(s): c52e2e9

Update app.py

Browse files

Fixed typo in the summarizer tool.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,8 +45,8 @@ def summarize_text_tool(text:str)-> str:
45
  text: the text to be summaried
46
  """
47
  try:
48
- hf_key = os.getEnv('hf_key')
49
- client = InferenceClient(api_key=hf_key)
50
  messages = [
51
  {
52
  "role": "user",
 
45
  text: the text to be summaried
46
  """
47
  try:
48
+ hf_token = os.getenv('hf_token')
49
+ client = InferenceClient(api_key=hf_token)
50
  messages = [
51
  {
52
  "role": "user",