Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,6 @@ custom_css = """
|
|
23 |
api_key = os.getenv('groq')
|
24 |
client = groq.Client(api_key=api_key)
|
25 |
|
26 |
-
|
27 |
def qwen(jsondata):
|
28 |
client = Client("Qwen/Qwen2.5-72B-Instruct")
|
29 |
result = client.predict(
|
@@ -31,8 +30,8 @@ def qwen(jsondata):
|
|
31 |
history=[],
|
32 |
system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
|
33 |
api_name="/model_chat"
|
34 |
-
)
|
35 |
-
return result
|
36 |
|
37 |
def llm(message):
|
38 |
message = f"return a json object with the keys: name,email,phone,website \n the values can be found here, leave blank if value is not available:\n {message} \n return a json object only. no text, no explanaition"
|
|
|
23 |
api_key = os.getenv('groq')
|
24 |
client = groq.Client(api_key=api_key)
|
25 |
|
|
|
26 |
def qwen(jsondata):
|
27 |
client = Client("Qwen/Qwen2.5-72B-Instruct")
|
28 |
result = client.predict(
|
|
|
30 |
history=[],
|
31 |
system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
|
32 |
api_name="/model_chat"
|
33 |
+
)
|
34 |
+
return result
|
35 |
|
36 |
def llm(message):
|
37 |
message = f"return a json object with the keys: name,email,phone,website \n the values can be found here, leave blank if value is not available:\n {message} \n return a json object only. no text, no explanaition"
|