wxgeorge commited on
Commit
77ee232
1 Parent(s): 988b5a0

:chart_with_upwards_trend: associate app attribution with inference request.

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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 = ""