Spaces:
Sleeping
Sleeping
Update app.py
Browse filesFixed typo in the summarizer tool.
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 |
-
|
| 49 |
-
client = InferenceClient(api_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",
|