sergiopaniego HF Staff commited on
Commit
1ac11cc
·
1 Parent(s): 2cb48ed
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -7,12 +7,6 @@ from vllm.config import DeviceConfig
7
  from vllm import LLM
8
  from sal.models.reward_models import RLHFFlow
9
 
10
- """
11
- 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
12
- """
13
- client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
14
-
15
-
16
  if not os.path.exists("search-and-learn"):
17
  subprocess.run(["git", "clone", "https://github.com/huggingface/search-and-learn"])
18
  subprocess.run(["pip", "install", "-e", "./search-and-learn[dev]"])
@@ -36,6 +30,12 @@ llm = LLM(
36
  )
37
 
38
 
 
 
 
 
 
 
39
 
40
  def respond(
41
  message,
 
7
  from vllm import LLM
8
  from sal.models.reward_models import RLHFFlow
9
 
 
 
 
 
 
 
10
  if not os.path.exists("search-and-learn"):
11
  subprocess.run(["git", "clone", "https://github.com/huggingface/search-and-learn"])
12
  subprocess.run(["pip", "install", "-e", "./search-and-learn[dev]"])
 
30
  )
31
 
32
 
33
+ """
34
+ 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
35
+ """
36
+ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
37
+
38
+
39
 
40
  def respond(
41
  message,