Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from clarifai.client.model import Model
|
|
| 4 |
# Function to get prediction from the model
|
| 5 |
def get_model_prediction(prompt):
|
| 6 |
model_url = "https://clarifai.com/mistralai/completion/models/codestral-22b-instruct"
|
| 7 |
-
pat = "
|
| 8 |
model = Model(url=model_url, pat=pat)
|
| 9 |
model_prediction = model.predict_by_bytes(prompt.encode(), input_type="text")
|
| 10 |
return model_prediction.outputs[0].data.text.raw
|
|
|
|
| 4 |
# Function to get prediction from the model
|
| 5 |
def get_model_prediction(prompt):
|
| 6 |
model_url = "https://clarifai.com/mistralai/completion/models/codestral-22b-instruct"
|
| 7 |
+
pat = "CodestralPat"
|
| 8 |
model = Model(url=model_url, pat=pat)
|
| 9 |
model_prediction = model.predict_by_bytes(prompt.encode(), input_type="text")
|
| 10 |
return model_prediction.outputs[0].data.text.raw
|