Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,9 @@ if not groq_api_key:
|
|
15 |
# Initialize Groq client
|
16 |
client = Groq(api_key=groq_api_key)
|
17 |
|
18 |
-
System_msg =
|
|
|
|
|
19 |
|
20 |
|
21 |
def nowInISt():
|
@@ -57,9 +59,9 @@ demo = gr.ChatInterface(
|
|
57 |
predict,
|
58 |
title = "blockchain teacher",
|
59 |
theme = gr.themes.Soft(),
|
60 |
-
chatbot = gr.Chatbot(label ="
|
61 |
textbox = gr.Textbox(
|
62 |
-
placeholder = "
|
63 |
scale = 7,
|
64 |
max_lines = 2,
|
65 |
),
|
|
|
15 |
# Initialize Groq client
|
16 |
client = Groq(api_key=groq_api_key)
|
17 |
|
18 |
+
System_msg = '''-act as an experienced blockchain developer,you have been working in this field from the past 15 years.
|
19 |
+
-help me understand some concepts, assume i am a complete begineer,
|
20 |
+
-if the user asks anything not related to blockchain, just say that you dont know about this'''
|
21 |
|
22 |
|
23 |
def nowInISt():
|
|
|
59 |
predict,
|
60 |
title = "blockchain teacher",
|
61 |
theme = gr.themes.Soft(),
|
62 |
+
chatbot = gr.Chatbot(label ="Learn about blochchain technology"),
|
63 |
textbox = gr.Textbox(
|
64 |
+
placeholder = "Ask me anything about blochchain",
|
65 |
scale = 7,
|
66 |
max_lines = 2,
|
67 |
),
|