loubnabnl HF staff commited on
Commit
13d65d7
1 Parent(s): 14de866

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def generate_code(
38
  ):
39
  # call space using its API endpoint
40
  url = (
41
- f"https://hf.space/embed/loubnabnl/{model_name.lower()}-subspace/+/api/predict/"
42
  )
43
  r = requests.post(
44
  url=url, json={"data": [gen_prompt, max_new_tokens, temperature, seed]}
 
38
  ):
39
  # call space using its API endpoint
40
  url = (
41
+ f"https://hf.space/embed/codeparrot/{model_name.lower()}-subspace/+/api/predict/"
42
  )
43
  r = requests.post(
44
  url=url, json={"data": [gen_prompt, max_new_tokens, temperature, seed]}