Spaces:
Runtime error
Runtime error
ricklamers
commited on
Commit
•
6aa31f2
1
Parent(s):
2a051f1
chore: switch to 8b
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import numexpr
|
|
5 |
from groq import Groq
|
6 |
from groq.types.chat.chat_completion_tool_param import ChatCompletionToolParam
|
7 |
|
8 |
-
MODEL = "llama3-groq-
|
9 |
client = Groq(api_key=os.environ["GROQ_API_KEY"])
|
10 |
|
11 |
def evaluate_math_expression(expression: str):
|
@@ -107,7 +107,7 @@ demo = gr.ChatInterface(
|
|
107 |
gr.Textbox(value="You are a friendly Chatbot with access to a calculator. Don't mention that we are using functions defined in Python.", label="System message"),
|
108 |
],
|
109 |
title="Groq Tool Use Chat",
|
110 |
-
description="This chatbot uses the `llama3-groq-
|
111 |
)
|
112 |
|
113 |
if __name__ == "__main__":
|
|
|
5 |
from groq import Groq
|
6 |
from groq.types.chat.chat_completion_tool_param import ChatCompletionToolParam
|
7 |
|
8 |
+
MODEL = "llama3-groq-8b-8192-tool-use-preview"
|
9 |
client = Groq(api_key=os.environ["GROQ_API_KEY"])
|
10 |
|
11 |
def evaluate_math_expression(expression: str):
|
|
|
107 |
gr.Textbox(value="You are a friendly Chatbot with access to a calculator. Don't mention that we are using functions defined in Python.", label="System message"),
|
108 |
],
|
109 |
title="Groq Tool Use Chat",
|
110 |
+
description="This chatbot uses the `llama3-groq-8b-8192-tool-use-preview` LLM with tool use capabilities, including a calculator function.",
|
111 |
)
|
112 |
|
113 |
if __name__ == "__main__":
|