Spaces:
Sleeping
Sleeping
Safwanahmad619
commited on
Commit
•
bbbe41e
1
Parent(s):
0bb7775
Update app.py
Browse files
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 |
-
|
85 |
-
|
86 |
-
|
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 |
|