Spaces:
Runtime error
Runtime error
import os | |
import gradio as gr | |
# Retrieve the Hugging Face token from environment variables | |
hf_token = os.getenv("HF_TOKEN") | |
# Load a private Hugging Face Space with a token | |
app = gr.load("segestic/Token-and-Cost-Calculator", hf_token="your_huggingface_token") | |
# Use the app | |
output = app("Input text") | |
print(output) |