eaglelandsonce commited on
Commit
56c31a4
·
verified ·
1 Parent(s): 06083fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = "c366cdccefa24e5eb7ae481a612c1b81"
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