Rishabh12j commited on
Commit
5be0561
·
verified ·
1 Parent(s): 900a270

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ model_id = "7qrmoo93"
8
 
9
  def res(data):
10
  print(data)
11
- resp = requests.post("https://model-7qrmoo93.api.baseten.co/production/predict",headers={"Authorization": "Api-Key V5r36lUR.s8F3b2Amna9PnQRyP3lFswULHYVF86ki"},json={'top_p': 0.75, 'prompt': data, 'num_beams': 4, 'temperature': 0.4},)
12
  print(resp.json())
13
  return resp.json()
14
 
 
8
 
9
  def res(data):
10
  print(data)
11
+ resp = requests.post("https://model-7qrmoo93.api.baseten.co/production/predict",headers={"Authorization": os.getenv("API_Key")},json={'top_p': 0.75, 'prompt': data, 'num_beams': 4, 'temperature': 0.4},)
12
  print(resp.json())
13
  return resp.json()
14