alexrs commited on
Commit
4e58274
1 Parent(s): 829c491

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,7 +8,7 @@ import secrets
8
 
9
 
10
  cohere_api_key = os.getenv("COHERE_API_KEY")
11
- co = cohere.Client(cohere_api_key, client_name="huggingface-aya-23")
12
 
13
 
14
  def trigger_example(example):
@@ -29,7 +29,7 @@ def generate_response(user_message, cid, token, history=None):
29
 
30
  history.append(user_message)
31
 
32
- stream = co.chat_stream(message=user_message, conversation_id=cid, model='c4ai-aya-23-35b', connectors=[], temperature=0.3)
33
  #stream = co.generate(prompt=user_message, model='c4ai-aya-23')
34
  output = ""
35
 
@@ -90,7 +90,7 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
90
  <br/>
91
  **Note**: Aya 23 is a single-turn instruction-following model and it is not optimized for chat mode use.
92
  <br/>
93
- **Model**: [aya-23-35B](https://huggingface.co/CohereForAI/aya-23-35B)
94
  <br/>
95
  **Developed by**: [Cohere for AI](https://cohere.com/research) and [Cohere](https://cohere.com/)
96
  <br/>
 
8
 
9
 
10
  cohere_api_key = os.getenv("COHERE_API_KEY")
11
+ co = cohere.Client(cohere_api_key, client_name="huggingface-aya-23-8b")
12
 
13
 
14
  def trigger_example(example):
 
29
 
30
  history.append(user_message)
31
 
32
+ stream = co.chat_stream(message=user_message, conversation_id=cid, model='c4ai-aya-23-8b', connectors=[], temperature=0.3)
33
  #stream = co.generate(prompt=user_message, model='c4ai-aya-23')
34
  output = ""
35
 
 
90
  <br/>
91
  **Note**: Aya 23 is a single-turn instruction-following model and it is not optimized for chat mode use.
92
  <br/>
93
+ **Model**: [aya-23-8B](https://huggingface.co/CohereForAI/aya-23-8B)
94
  <br/>
95
  **Developed by**: [Cohere for AI](https://cohere.com/research) and [Cohere](https://cohere.com/)
96
  <br/>