Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,13 +2,9 @@ import os
|
|
| 2 |
import json
|
| 3 |
import gradio as gr
|
| 4 |
import requests
|
| 5 |
-
from
|
| 6 |
-
from groq import Groq # Correct import after installing groq module
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
load_dotenv()
|
| 10 |
-
|
| 11 |
-
# Groq client initialization
|
| 12 |
client = Groq(api_key=os.getenv("GROQ_API_KEY"))
|
| 13 |
|
| 14 |
def preprocess_city_name_and_generate_insight(city_name):
|
|
|
|
| 2 |
import json
|
| 3 |
import gradio as gr
|
| 4 |
import requests
|
| 5 |
+
from groq import Groq # Ensure this is the correct import
|
|
|
|
| 6 |
|
| 7 |
+
# Groq client initialization with environment variables
|
|
|
|
|
|
|
|
|
|
| 8 |
client = Groq(api_key=os.getenv("GROQ_API_KEY"))
|
| 9 |
|
| 10 |
def preprocess_city_name_and_generate_insight(city_name):
|