Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,13 +7,14 @@ HEALTH_API_URL = "https://rahul7star-FramePack-F1-DiffusionForce.hf.space/api/he
|
|
| 7 |
|
| 8 |
def check_health():
|
| 9 |
try:
|
|
|
|
| 10 |
response = requests.get(HEALTH_API_URL)
|
| 11 |
if response.status_code == 200:
|
| 12 |
-
return f"✅ API is healthy: {response.json()}"
|
| 13 |
else:
|
| 14 |
-
return f"❌ API Error: {response.status_code} - {response.text}"
|
| 15 |
except Exception as e:
|
| 16 |
-
return f"❌ Exception occurred: {str(e)}"
|
| 17 |
|
| 18 |
def call_framepack_api(
|
| 19 |
input_image,
|
|
|
|
| 7 |
|
| 8 |
def check_health():
|
| 9 |
try:
|
| 10 |
+
print("incoming app")
|
| 11 |
response = requests.get(HEALTH_API_URL)
|
| 12 |
if response.status_code == 200:
|
| 13 |
+
return f"✅ API Rahul is healthy: {response.json()}"
|
| 14 |
else:
|
| 15 |
+
return f"❌ API Rahul Error: {response.status_code} - {response.text}"
|
| 16 |
except Exception as e:
|
| 17 |
+
return f"❌ Exception Rahul occurred: {str(e)}"
|
| 18 |
|
| 19 |
def call_framepack_api(
|
| 20 |
input_image,
|