Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
-
from
|
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 =
|
8 |
|
9 |
|
10 |
def respond(
|
@@ -27,7 +27,8 @@ def respond(
|
|
27 |
|
28 |
response = ""
|
29 |
|
30 |
-
for message in client.
|
|
|
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,
|