Jankidepala commited on
Commit
36710f7
·
verified ·
1 Parent(s): 75ca88d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -5,7 +5,13 @@ from huggingface_hub import InferenceClient
5
  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
6
  """
7
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
 
8
 
 
 
 
 
 
9
 
10
  def respond(
11
  message,
 
5
  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
6
  """
7
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
8
+ from transformers import pipeline
9
 
10
+ messages = [
11
+ {"role": "user", "content": "Who are you?"},
12
+ ]
13
+ pipe = pipeline("text-generation", model="pentagoniac/SEMIKONG-70B")
14
+ pipe(messages)
15
 
16
  def respond(
17
  message,