Spaces:
Runtime error
Runtime error
CyberNative
commited on
Commit
•
817178f
1
Parent(s):
c03e3c1
Update app.py
Browse files
app.py
CHANGED
@@ -75,14 +75,8 @@ def chat_llama3_8b(message: str,
|
|
75 |
stop=["<|im_end|>"]
|
76 |
)
|
77 |
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
outputs = []
|
82 |
-
for text in streamer:
|
83 |
-
outputs.append(text)
|
84 |
-
#print(outputs)
|
85 |
-
yield "".join(outputs)
|
86 |
|
87 |
|
88 |
# Gradio block
|
|
|
75 |
stop=["<|im_end|>"]
|
76 |
)
|
77 |
|
78 |
+
response=llm.create_chat_completion(messages=conversation, temperature=temperature)
|
79 |
+
yield response
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
|
82 |
# Gradio block
|