Santhosh54321 commited on
Commit
07930ee
·
verified ·
1 Parent(s): 2f06c26

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import requests
3
+ import os
4
+
5
+ # Fetch Hugging Face and Groq API keys from secrets
6
+ HUGGINGFACE_TOKEN = os.getenv('HUGGINGFACE_TOKEN')
7
+ GROQ_API_KEY = os.getenv('GROQ_API_KEY')
8
+
9
+ # API Headers
10
+ headers_hf = {"Authorization": f"Bearer {HUGGINGFACE_TOKEN}"}
11
+
12
+ if __name__ == "__main__":
13
+ main()