Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,12 +8,30 @@ client = Groq(api_key=GROQ_API_KEY)
|
|
| 8 |
|
| 9 |
TITLE = "<h1><center>CodeAssist AI</center></h1>"
|
| 10 |
PLACEHOLDER = """<center><p>Hi, I'm your coding assistant. Ask me anything about programming!</p></center>"""
|
|
|
|
| 11 |
CSS = """
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
"""
|
|
|
|
| 17 |
FOOTER_TEXT = """<footer> <p>If you enjoyed the functionality of the app, please leave a like!<br> Check out more on <a href="https://www.linkedin.com/in/girish-wangikar/" target="_blank">LinkedIn</a> | <a href="https://girishwangikar.github.io/Girish_Wangikar_Portfolio.github.io/" target="_blank">Portfolio</a></p></footer>"""
|
| 18 |
|
| 19 |
def generate_response(
|
|
@@ -52,7 +70,7 @@ def clear_conversation():
|
|
| 52 |
|
| 53 |
chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)
|
| 54 |
|
| 55 |
-
with gr.Blocks(css=CSS) as demo:
|
| 56 |
gr.HTML(TITLE)
|
| 57 |
|
| 58 |
with gr.Accordion("⚙️ Parameters", open=False):
|
|
|
|
| 8 |
|
| 9 |
TITLE = "<h1><center>CodeAssist AI</center></h1>"
|
| 10 |
PLACEHOLDER = """<center><p>Hi, I'm your coding assistant. Ask me anything about programming!</p></center>"""
|
| 11 |
+
|
| 12 |
CSS = """
|
| 13 |
+
.duplicate-button {
|
| 14 |
+
margin: auto !important;
|
| 15 |
+
color: white !important;
|
| 16 |
+
background: black !important;
|
| 17 |
+
border-radius: 100vh !important;
|
| 18 |
+
}
|
| 19 |
+
h3, p, h1 {
|
| 20 |
+
text-align: center;
|
| 21 |
+
color: white;
|
| 22 |
+
}
|
| 23 |
+
footer {
|
| 24 |
+
text-align: center;
|
| 25 |
+
padding: 10px;
|
| 26 |
+
width: 100%;
|
| 27 |
+
background-color: rgba(240, 240, 240, 0.8);
|
| 28 |
+
z-index: 1000;
|
| 29 |
+
position: relative;
|
| 30 |
+
margin-top: 10px;
|
| 31 |
+
color: black;
|
| 32 |
+
}
|
| 33 |
"""
|
| 34 |
+
|
| 35 |
FOOTER_TEXT = """<footer> <p>If you enjoyed the functionality of the app, please leave a like!<br> Check out more on <a href="https://www.linkedin.com/in/girish-wangikar/" target="_blank">LinkedIn</a> | <a href="https://girishwangikar.github.io/Girish_Wangikar_Portfolio.github.io/" target="_blank">Portfolio</a></p></footer>"""
|
| 36 |
|
| 37 |
def generate_response(
|
|
|
|
| 70 |
|
| 71 |
chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)
|
| 72 |
|
| 73 |
+
with gr.Blocks(css=CSS, theme="Nymbo/Nymbo_Theme") as demo:
|
| 74 |
gr.HTML(TITLE)
|
| 75 |
|
| 76 |
with gr.Accordion("⚙️ Parameters", open=False):
|