Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ theme = gr.themes.Monochrome(
|
|
70 |
)
|
71 |
|
72 |
client = Client(
|
73 |
-
API_URL,
|
74 |
)
|
75 |
|
76 |
def generate(prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0, chat_mode=False):
|
|
|
70 |
)
|
71 |
|
72 |
client = Client(
|
73 |
+
API_URL, headers={"Authorization": f"Bearer {HF_TOKEN}"},
|
74 |
)
|
75 |
|
76 |
def generate(prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0, chat_mode=False):
|