Spaces:
Sleeping
Sleeping
import streamlit as st | |
import requests | |
import os | |
# Fetch Hugging Face and Groq API keys from secrets | |
HUGGINGFACE_TOKEN = os.getenv('HUGGINGFACE_TOKEN') | |
GROQ_API_KEY = os.getenv('GROQ_API_KEY') | |
# API Headers | |
headers_hf = {"Authorization": f"Bearer {HUGGINGFACE_TOKEN}"} | |
… | |
if __name__ == "__main__": | |
main() | |