Ana8413 Klariiii commited on
Commit
30b0c87
·
verified ·
1 Parent(s): 3171a1c

just trying one more thing (#2)

Browse files

- just trying one more thing (1c8f5953b2b282052cf5b076f27d5795c8133b10)


Co-authored-by: Klara Sofia Varga <Klariiii@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,12 +9,12 @@ def respond(
9
  max_tokens,
10
  temperature,
11
  top_p,
12
- hf_token: gr.OAuthToken,
13
  ):
14
  """
15
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
16
  """
17
- client = InferenceClient(token=hf_token.token, model="Ana8413/model")
18
 
19
  messages = [{"role": "system", "content": system_message}]
20
 
 
9
  max_tokens,
10
  temperature,
11
  top_p,
12
+ hf_token: None,
13
  ):
14
  """
15
  For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
16
  """
17
+ client = InferenceClient(model="Ana8413/model")
18
 
19
  messages = [{"role": "system", "content": system_message}]
20