Spaces:
Sleeping
Sleeping
Meet Radadiya
commited on
Commit
·
5e16a3d
1
Parent(s):
513303e
Repair
Browse files
app.py
CHANGED
@@ -259,10 +259,7 @@ def configure_application():
|
|
259 |
def initialize_groq_client():
|
260 |
"""Create and validate Groq API client"""
|
261 |
load_dotenv()
|
262 |
-
api_key = os.getenv("GROQ_API_KEY")
|
263 |
-
if not api_key:
|
264 |
-
api_key = "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" # Fallback key
|
265 |
-
|
266 |
if not api_key:
|
267 |
st.error("Groq API key not found. Please provide an API key.")
|
268 |
return None
|
@@ -517,7 +514,7 @@ def generate_radiology_report_groq(uploaded_file, client):
|
|
517 |
image_url = f"data:image/{img_format.lower()};base64,{base64_image}"
|
518 |
|
519 |
try:
|
520 |
-
with st.spinner("Analyzing image
|
521 |
# Add progress bar for visual feedback
|
522 |
progress_bar = st.progress(0)
|
523 |
for i in range(100):
|
|
|
259 |
def initialize_groq_client():
|
260 |
"""Create and validate Groq API client"""
|
261 |
load_dotenv()
|
262 |
+
api_key = os.getenv("GROQ_API_KEY")
|
|
|
|
|
|
|
263 |
if not api_key:
|
264 |
st.error("Groq API key not found. Please provide an API key.")
|
265 |
return None
|
|
|
514 |
image_url = f"data:image/{img_format.lower()};base64,{base64_image}"
|
515 |
|
516 |
try:
|
517 |
+
with st.spinner("Analyzing image..."):
|
518 |
# Add progress bar for visual feedback
|
519 |
progress_bar = st.progress(0)
|
520 |
for i in range(100):
|