Artin2009 commited on
Commit
0c004de
1 Parent(s): c2662fd

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +12 -0
chain_app.py CHANGED
@@ -995,6 +995,18 @@ async def main(message: cl.Message):
995
  elements=elements,
996
  ).send()
997
 
 
 
 
 
 
 
 
 
 
 
 
 
998
  elif chat_profile == 'Llama-3.1-405B':
999
  client = InferenceClient(
1000
  "meta-llama/Meta-Llama-3.1-405B-Instruct",
 
995
  elements=elements,
996
  ).send()
997
 
998
+ elif chat_profile == 'Qwen2-57B':
999
+ result = client.predict(
1000
+ query=message.content,
1001
+ history=[],
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
+
1006
+ await cl.Message(
1007
+ content=result
1008
+ ).send()
1009
+
1010
  elif chat_profile == 'Llama-3.1-405B':
1011
  client = InferenceClient(
1012
  "meta-llama/Meta-Llama-3.1-405B-Instruct",