Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
|
|
| 1 |
from groq import Groq
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
#
|
| 5 |
-
GROQ_API_KEY = "
|
| 6 |
|
| 7 |
# Initialize Groq client
|
| 8 |
client = Groq(api_key=GROQ_API_KEY)
|
|
@@ -32,10 +33,8 @@ def healthcare_assistant(message, history):
|
|
| 32 |
interface = gr.ChatInterface(
|
| 33 |
fn=healthcare_assistant,
|
| 34 |
title="Professional Role Pathway Bot",
|
| 35 |
-
description="Paste a JD
|
| 36 |
)
|
| 37 |
|
| 38 |
if __name__ == "__main__":
|
| 39 |
interface.launch()
|
| 40 |
-
|
| 41 |
-
|
|
|
|
| 1 |
+
import os
|
| 2 |
from groq import Groq
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
+
# Read API key from HF secret
|
| 6 |
+
GROQ_API_KEY = os.environ.get("GROQ_API_KEY")
|
| 7 |
|
| 8 |
# Initialize Groq client
|
| 9 |
client = Groq(api_key=GROQ_API_KEY)
|
|
|
|
| 33 |
interface = gr.ChatInterface(
|
| 34 |
fn=healthcare_assistant,
|
| 35 |
title="Professional Role Pathway Bot",
|
| 36 |
+
description="Paste a JD, answer a few prompts, take a short adaptive quiz—get a personalized, week-by-week learning path with practice tasks, micro-quizzes, and a simple skills report for onboarding or reviews.."
|
| 37 |
)
|
| 38 |
|
| 39 |
if __name__ == "__main__":
|
| 40 |
interface.launch()
|
|
|
|
|
|