SnowFlash383935 commited on
Commit
fedd74a
·
verified ·
1 Parent(s): 59736e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
- from huggingface_hub import InferenceClient
3
 
4
  """
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(
@@ -27,7 +27,8 @@ def respond(
27
 
28
  response = ""
29
 
30
- for message in client.chat_completion(
 
31
  messages,
32
  max_tokens=max_tokens,
33
  stream=True,
 
1
  import gradio as gr
2
+ from together import Together
3
 
4
  """
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 = Together()
8
 
9
 
10
  def respond(
 
27
 
28
  response = ""
29
 
30
+ for message in client.chat.completions.create(
31
+ model="meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
32
  messages,
33
  max_tokens=max_tokens,
34
  stream=True,