girishwangikar commited on
Commit
1d8ad9a
·
verified ·
1 Parent(s): a66c6e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -8,9 +8,12 @@ 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 = """.duplicate-button { margin: auto !important; color: white !important; background: black !important; border-radius: 100vh !important;}
12
- h3 { text-align: center;}
13
- footer { text-align: center; padding: 10px; position: fixed; left: 0; bottom: 20px; width: 100%; background-color: rgba(240, 240, 240, 0.8); z-index: 1000;}"""
 
 
 
14
  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>"""
15
 
16
  def generate_response(
@@ -91,4 +94,4 @@ with gr.Blocks(css=CSS) as demo:
91
  gr.HTML(FOOTER_TEXT)
92
 
93
  if __name__ == "__main__":
94
- demo.launch()
 
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
+ body { background-color: black; color: white; }
13
+ .duplicate-button { margin: auto !important; color: white !important; background: black !important; border-radius: 100vh !important;}
14
+ h3, p, h1 { text-align: center; color: white; }
15
+ footer { text-align: center; padding: 10px; width: 100%; background-color: rgba(240, 240, 240, 0.8); z-index: 1000; position: relative; margin-top: 10px; color: black;}
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(
 
94
  gr.HTML(FOOTER_TEXT)
95
 
96
  if __name__ == "__main__":
97
+ demo.launch()