:chart_with_upwards_trend: associate app attribution with inference request.
Browse files
app.py
CHANGED
@@ -24,7 +24,11 @@ def respond(message, history, model):
|
|
24 |
messages= history_openai_format,
|
25 |
temperature=1.0,
|
26 |
stream=True,
|
27 |
-
max_tokens=2000
|
|
|
|
|
|
|
|
|
28 |
)
|
29 |
|
30 |
partial_message = ""
|
|
|
24 |
messages= history_openai_format,
|
25 |
temperature=1.0,
|
26 |
stream=True,
|
27 |
+
max_tokens=2000,
|
28 |
+
extra_headers={
|
29 |
+
'HTTP-Referer': 'https://huggingface.co/spaces/featherless-ai/try-this-model',
|
30 |
+
'X-Title': "HF's missing inference widget"
|
31 |
+
}
|
32 |
)
|
33 |
|
34 |
partial_message = ""
|