Spaces:
Runtime error
Runtime error
Update chain_app.py
Browse files- chain_app.py +4 -6
chain_app.py
CHANGED
@@ -996,14 +996,12 @@ async def main(message: cl.Message):
|
|
996 |
).send()
|
997 |
|
998 |
elif chat_profile == 'Qwen2-57B':
|
999 |
-
client = Client("Qwen/Qwen2-57b-a14b-instruct-demo")
|
1000 |
result = client.predict(
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
api_name="/model_chat"
|
1005 |
)
|
1006 |
-
|
1007 |
await cl.Message(
|
1008 |
content=result
|
1009 |
).send()
|
|
|
996 |
).send()
|
997 |
|
998 |
elif chat_profile == 'Qwen2-57B':
|
999 |
+
client = Client("Qwen/Qwen2-57b-a14b-instruct-demo", hf_token=hf_token)
|
1000 |
result = client.predict(
|
1001 |
+
query=message.content,
|
1002 |
+
system="You are a helpful AI chatbot made by two iranian boys named Artin Daneshvar and Sadra Noadoust",
|
1003 |
+
api_name="/model_chat"
|
|
|
1004 |
)
|
|
|
1005 |
await cl.Message(
|
1006 |
content=result
|
1007 |
).send()
|