Spaces:
Sleeping
Sleeping
Update frontend.py
Browse files- frontend.py +2 -2
frontend.py
CHANGED
|
@@ -6,8 +6,8 @@ history = []
|
|
| 6 |
|
| 7 |
def calculate(expression):
|
| 8 |
try:
|
| 9 |
-
# Use the
|
| 10 |
-
api_url = "calculate"
|
| 11 |
|
| 12 |
response = requests.post(api_url, json={"expr": expression})
|
| 13 |
if response.status_code == 200:
|
|
|
|
| 6 |
|
| 7 |
def calculate(expression):
|
| 8 |
try:
|
| 9 |
+
# Use the full URL of your Hugging Face space
|
| 10 |
+
api_url = "https://0learn-calcfastapi.hf.space/calculate"
|
| 11 |
|
| 12 |
response = requests.post(api_url, json={"expr": expression})
|
| 13 |
if response.status_code == 200:
|