File size: 385 Bytes
3ae22f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import requests

# URL to the Gradio Space API
url = "https://your-username-your-space-name.hf.space/api/predict"

# Path to your Excel file
file_path = "/path/to/your/input_file.xlsx"

# Read the file in binary mode
with open(file_path, "rb") as file:
    files = {"data": file}
    response = requests.post(url, files=files)

# Print the response from the API
print(response.json())