Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ co = cohere.Client('api_key') # Replace with your Cohere API key
|
|
| 11 |
# Function to generate text using Cohere API
|
| 12 |
def generate_text(prompt, temperature):
|
| 13 |
response = co.generate(
|
| 14 |
-
model_id = os.environ["MODEL_ID"]
|
| 15 |
model='model_id', # Replace with your Cohere model ID
|
| 16 |
prompt=prompt,
|
| 17 |
max_tokens= 2000,
|
|
|
|
| 11 |
# Function to generate text using Cohere API
|
| 12 |
def generate_text(prompt, temperature):
|
| 13 |
response = co.generate(
|
| 14 |
+
model_id = os.environ["MODEL_ID"],
|
| 15 |
model='model_id', # Replace with your Cohere model ID
|
| 16 |
prompt=prompt,
|
| 17 |
max_tokens= 2000,
|