Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,8 @@ def generate_summary():
|
|
65 |
# Create an LLM
|
66 |
llm = HuggingFaceEndpoint(
|
67 |
repo_id=model_id,
|
68 |
-
max_new_tokens=MAX_TOKENS
|
|
|
69 |
)
|
70 |
|
71 |
# Show spinner, while we are waiting for the response
|
|
|
65 |
# Create an LLM
|
66 |
llm = HuggingFaceEndpoint(
|
67 |
repo_id=model_id,
|
68 |
+
max_new_tokens=MAX_TOKENS,
|
69 |
+
huggingfacehub_api_token = st.session_state['HUGGINGFACEHUB_API_TOKEN']
|
70 |
)
|
71 |
|
72 |
# Show spinner, while we are waiting for the response
|