Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,15 +23,7 @@ client = Groq(api_key=api_key)
|
|
23 |
MODEL_NAME = os.environ.get("MODEL_NAME", "llama3-8b-8192")
|
24 |
|
25 |
def get_completion(user_input):
|
26 |
-
"""
|
27 |
-
Generate a chat completion response using the Groq client.
|
28 |
-
|
29 |
-
Args:
|
30 |
-
user_input (str): The user's input query.
|
31 |
|
32 |
-
Returns:
|
33 |
-
str: The generated response or an error message.
|
34 |
-
"""
|
35 |
try:
|
36 |
completion = client.chat.completions.create(
|
37 |
model=MODEL_NAME,
|
@@ -69,7 +61,7 @@ def launch_interface():
|
|
69 |
lines=6,
|
70 |
max_lines=10
|
71 |
),
|
72 |
-
title="
|
73 |
description="""
|
74 |
<style>
|
75 |
.gr-box {
|
@@ -119,7 +111,7 @@ def launch_interface():
|
|
119 |
background-color: #0056b3;
|
120 |
}
|
121 |
</style>
|
122 |
-
<div class="gr-interface-title">Welcome to
|
123 |
<div class="gr-interface-description">Ask anything and get a helpful response.</div>
|
124 |
""",
|
125 |
allow_flagging="never",
|
|
|
23 |
MODEL_NAME = os.environ.get("MODEL_NAME", "llama3-8b-8192")
|
24 |
|
25 |
def get_completion(user_input):
|
|
|
|
|
|
|
|
|
|
|
26 |
|
|
|
|
|
|
|
27 |
try:
|
28 |
completion = client.chat.completions.create(
|
29 |
model=MODEL_NAME,
|
|
|
61 |
lines=6,
|
62 |
max_lines=10
|
63 |
),
|
64 |
+
title="The AI",
|
65 |
description="""
|
66 |
<style>
|
67 |
.gr-box {
|
|
|
111 |
background-color: #0056b3;
|
112 |
}
|
113 |
</style>
|
114 |
+
<div class="gr-interface-title">Welcome to The Ai by Bavadharani</div>
|
115 |
<div class="gr-interface-description">Ask anything and get a helpful response.</div>
|
116 |
""",
|
117 |
allow_flagging="never",
|