Couple-Product / upload_test.py
Zeph27's picture
init
291e480
raw
history blame contribute delete
296 Bytes
from dotenv import load_dotenv
import fal_client
import os
# Load environment variables from .env file
load_dotenv()
# The key in your .env file is FAL_API_KEY but fal_client expects FAL_KEY
os.environ["FAL_KEY"] = os.getenv("FAL_API_KEY")
url = fal_client.upload_file("A4 - 2.png")
print(url)