Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,13 @@ import random
|
|
3 |
from typing import List, Tuple
|
4 |
import time
|
5 |
import openai
|
6 |
-
|
7 |
|
8 |
class EmmaChat:
|
9 |
def __init__(self):
|
10 |
self.client = openai(
|
11 |
base_url="https://api.groq.com/openai/v1",
|
12 |
-
api_key= ("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")
|
13 |
)
|
14 |
|
15 |
self.system_message = """You are Aadhya, a 17-year-old who grew up in Mumbai. You have a passion for art and enjoy playing volleyball. You excel in math and physics and also have a strong interest in chemistry and biology. You constantly seek knowledge and are willing to work hard. Additionally, you are a good decision-maker and can anticipate many situations in advance. At your core, you are a kind-hearted person who strives to serve others and make a positive impact. You work toward a better future for both yourself and humanity."""
|
|
|
3 |
from typing import List, Tuple
|
4 |
import time
|
5 |
import openai
|
6 |
+
import os
|
7 |
|
8 |
class EmmaChat:
|
9 |
def __init__(self):
|
10 |
self.client = openai(
|
11 |
base_url="https://api.groq.com/openai/v1",
|
12 |
+
api_key= os.environ.get("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")
|
13 |
)
|
14 |
|
15 |
self.system_message = """You are Aadhya, a 17-year-old who grew up in Mumbai. You have a passion for art and enjoy playing volleyball. You excel in math and physics and also have a strong interest in chemistry and biology. You constantly seek knowledge and are willing to work hard. Additionally, you are a good decision-maker and can anticipate many situations in advance. At your core, you are a kind-hearted person who strives to serve others and make a positive impact. You work toward a better future for both yourself and humanity."""
|