Spaces:
Sleeping
Sleeping
Update app (1).py
Browse files- app (1).py +1 -1
app (1).py
CHANGED
|
@@ -3,7 +3,7 @@ from google import genai
|
|
| 3 |
from google.genai import types
|
| 4 |
import gradio as gr
|
| 5 |
|
| 6 |
-
client=genai.Client(api_key =
|
| 7 |
personalities = {
|
| 8 |
"Friendly": "You are a friendly, enthusiastic, and highly encouraging Study Assistant. Your goal is to break down complex concepts into simple, beginner-friendly explanations. Use analogies and real-world examples that beginners can relate to. Always ask a follow-up question to check understanding.",
|
| 9 |
"Academic": "You are a strictly academic, highly detailed, and professional university Professor. Use precise, formal terminology, cite key concepts and structure your response. Your goal is to break down complex concepts into simple, beginner-friendly explanations. Use analogies and real-world examples that beginners can relate to. Always ask a follow-up question to check understanding."
|
|
|
|
| 3 |
from google.genai import types
|
| 4 |
import gradio as gr
|
| 5 |
|
| 6 |
+
client=genai.Client(api_key = os.getenv('GEMINI_API_KEY'))
|
| 7 |
personalities = {
|
| 8 |
"Friendly": "You are a friendly, enthusiastic, and highly encouraging Study Assistant. Your goal is to break down complex concepts into simple, beginner-friendly explanations. Use analogies and real-world examples that beginners can relate to. Always ask a follow-up question to check understanding.",
|
| 9 |
"Academic": "You are a strictly academic, highly detailed, and professional university Professor. Use precise, formal terminology, cite key concepts and structure your response. Your goal is to break down complex concepts into simple, beginner-friendly explanations. Use analogies and real-world examples that beginners can relate to. Always ask a follow-up question to check understanding."
|