Safwanahmad619 commited on
Commit
bbbe41e
1 Parent(s): 0bb7775

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -81,9 +81,9 @@ def chatbot(audio=None):
81
 
82
  # Generate a response using Anthropic API
83
  chat_completion = client.completions.create(
84
- prompt=user_input,
85
- model="claude-v1", # Replace with the correct model name for Anthropic
86
- max_tokens=100, # Adjust as needed
87
  )
88
  response_text = chat_completion['completion']
89
 
 
81
 
82
  # Generate a response using Anthropic API
83
  chat_completion = client.completions.create(
84
+ model="claude-v1", # Specify the model
85
+ prompt=user_input, # Provide the user input as the prompt
86
+ max_tokens_to_sample=100, # Specify the maximum tokens to sample
87
  )
88
  response_text = chat_completion['completion']
89