EmoCube commited on
Commit
a7f537c
·
verified ·
1 Parent(s): 20684f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -83,6 +83,8 @@ def run_huggingface_model(model, messages, max_tokens, temperature, top_p):
83
  model = "https://api-inference.huggingface.co/models/" + model + "/v1/chat/completions";
84
  response = requests.post(model, headers=headers, json=payload, timeout=30)
85
 
 
 
86
  if response.status_code != 200:
87
  response = json.loads(response.content)
88
  print("ERROR: " + response["error"])
 
83
  model = "https://api-inference.huggingface.co/models/" + model + "/v1/chat/completions";
84
  response = requests.post(model, headers=headers, json=payload, timeout=30)
85
 
86
+ print(response)
87
+
88
  if response.status_code != 200:
89
  response = json.loads(response.content)
90
  print("ERROR: " + response["error"])