Spaces:
Sleeping
Sleeping
File size: 313 Bytes
07930ee |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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()
|