Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,3 @@
|
|
| 1 |
-
# Install necessary libraries
|
| 2 |
-
!pip install requests nltk streamlit
|
| 3 |
-
|
| 4 |
import os
|
| 5 |
import requests
|
| 6 |
import nltk
|
|
@@ -12,7 +9,7 @@ nltk.download('punkt')
|
|
| 12 |
|
| 13 |
# Set the environmental variable for GROQ API key
|
| 14 |
# Replace 'your_groq_api_key' with your actual API key
|
| 15 |
-
os.environ["GROQ_API_KEY"] = "
|
| 16 |
|
| 17 |
# Retrieve the API key from the environment variable
|
| 18 |
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
|
@@ -92,4 +89,4 @@ def main():
|
|
| 92 |
reading_comprehension()
|
| 93 |
|
| 94 |
if __name__ == '__main__':
|
| 95 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import requests
|
| 3 |
import nltk
|
|
|
|
| 9 |
|
| 10 |
# Set the environmental variable for GROQ API key
|
| 11 |
# Replace 'your_groq_api_key' with your actual API key
|
| 12 |
+
os.environ["GROQ_API_KEY"] = "your_groq_api_key" # Set your key here
|
| 13 |
|
| 14 |
# Retrieve the API key from the environment variable
|
| 15 |
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
|
|
|
|
| 89 |
reading_comprehension()
|
| 90 |
|
| 91 |
if __name__ == '__main__':
|
| 92 |
+
main()
|