fosse commited on
Commit
648f6bc
·
verified ·
1 Parent(s): 613ef8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -106,7 +106,7 @@ def newsworthiness_detection(fetch_message_from_newsweb: str) -> str:
106
  """
107
 
108
  try:
109
- response = hf_client.text_generation(
110
  prompt=full_prompt,
111
  max_new_tokens=150,
112
  temperature=0.2,
 
106
  """
107
 
108
  try:
109
+ response = HfApiModel(
110
  prompt=full_prompt,
111
  max_new_tokens=150,
112
  temperature=0.2,