Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -188,7 +188,7 @@ def submit(
|
|
188 |
"Authorization": f"Bearer {hf_token_input.strip()}",
|
189 |
"Content-Type": "application/json",
|
190 |
}
|
191 |
-
endpoint_url = f"https://api.endpoints.huggingface.cloud/v2/endpoint"
|
192 |
print(endpoint_url)
|
193 |
|
194 |
response = requests.post(endpoint_url, headers=headers, data=payload)
|
@@ -224,7 +224,7 @@ with gr.Blocks(css=STYLE) as hf_endpoint:
|
|
224 |
|
225 |
Model from the Hugging Face hub""")
|
226 |
repository_selector = gr.Textbox(
|
227 |
-
value="NousResearch/Nous-Hermes-Llama2-
|
228 |
interactive=False,
|
229 |
show_label=False,
|
230 |
elem_classes=["no-label", "small-big"]
|
|
|
188 |
"Authorization": f"Bearer {hf_token_input.strip()}",
|
189 |
"Content-Type": "application/json",
|
190 |
}
|
191 |
+
endpoint_url = f"https://api.endpoints.huggingface.cloud/v2/endpoint/{hf_account_input.strip()}"
|
192 |
print(endpoint_url)
|
193 |
|
194 |
response = requests.post(endpoint_url, headers=headers, data=payload)
|
|
|
224 |
|
225 |
Model from the Hugging Face hub""")
|
226 |
repository_selector = gr.Textbox(
|
227 |
+
value="NousResearch/Nous-Hermes-Llama2-13b",
|
228 |
interactive=False,
|
229 |
show_label=False,
|
230 |
elem_classes=["no-label", "small-big"]
|