Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def format_prompt(description, columns):
|
|
46 |
import requests
|
47 |
|
48 |
# Define your Streamlit Space inference URL
|
49 |
-
inference_endpoint = "https://huggingface.co/spaces/yakine/model"
|
50 |
|
51 |
def generate_synthetic_data(description, columns):
|
52 |
try:
|
@@ -67,7 +67,7 @@ def generate_synthetic_data(description, columns):
|
|
67 |
}
|
68 |
}
|
69 |
|
70 |
-
response = requests.post(inference_endpoint
|
71 |
|
72 |
if response.status_code != 200:
|
73 |
return f"Error: {response.status_code}, {response.text}"
|
|
|
46 |
import requests
|
47 |
|
48 |
# Define your Streamlit Space inference URL
|
49 |
+
inference_endpoint = "https://huggingface.co/spaces/yakine/model/api/predict"
|
50 |
|
51 |
def generate_synthetic_data(description, columns):
|
52 |
try:
|
|
|
67 |
}
|
68 |
}
|
69 |
|
70 |
+
response = requests.post(inference_endpoint , json=data, headers=headers)
|
71 |
|
72 |
if response.status_code != 200:
|
73 |
return f"Error: {response.status_code}, {response.text}"
|