0Learn commited on
Commit
ceed8aa
·
verified ·
1 Parent(s): c1512ad

Update frontend.py

Browse files
Files changed (1) hide show
  1. frontend.py +2 -2
frontend.py CHANGED
@@ -6,8 +6,8 @@ history = []
6
 
7
  def calculate(expression):
8
  try:
9
- # Use the current page's path as the API endpoint
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: