Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,12 +3,12 @@ import groq
|
|
| 3 |
import gradio as gr
|
| 4 |
import sys
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
api_key =
|
| 8 |
|
| 9 |
# Check if the API key is available
|
| 10 |
if not api_key:
|
| 11 |
-
print("❌ Error: GROQ_API_KEY is not set. Please add it in
|
| 12 |
sys.exit(1) # Exit the program if the API key is not available
|
| 13 |
|
| 14 |
# Initialize the Groq client with the API key
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import sys
|
| 5 |
|
| 6 |
+
# Manually set the API key here
|
| 7 |
+
api_key = "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" # Replace with your actual API key
|
| 8 |
|
| 9 |
# Check if the API key is available
|
| 10 |
if not api_key:
|
| 11 |
+
print("❌ Error: GROQ_API_KEY is not set. Please add it manually in the script.")
|
| 12 |
sys.exit(1) # Exit the program if the API key is not available
|
| 13 |
|
| 14 |
# Initialize the Groq client with the API key
|