ghsambit commited on
Commit
e474992
·
1 Parent(s): 88e6d11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -5
app.py CHANGED
@@ -35,10 +35,31 @@ def ask_ai(message, history):
35
  except Exception as e:
36
  return f"❌ Error: {str(e)}"
37
 
38
- with gr.Blocks(theme=gr.themes.Base(), css=".gradio-container { max-width: 100% !important; padding: 1rem; }") as demo:
39
- with gr.Row():
40
- gr.Image(value="acrilc logo branding new name-16-16.png", height=60, show_label=False, container=False)
41
- gr.Markdown("## Sambit AI 🤖 — Powered by Acrilc", elem_id="title")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  chatbot = gr.Chatbot(label="Chat with Sambit AI", height=400)
44
  with gr.Row():
@@ -57,4 +78,4 @@ with gr.Blocks(theme=gr.themes.Base(), css=".gradio-container { max-width: 100%
57
  msg.submit(respond, [msg, state], [chatbot, msg])
58
  clear.click(lambda: ([], ""), None, [chatbot, msg])
59
 
60
- demo.launch()
 
35
  except Exception as e:
36
  return f"❌ Error: {str(e)}"
37
 
38
+ with gr.Blocks(
39
+ theme=gr.themes.Base(),
40
+ css="""
41
+ .gradio-container {
42
+ max-width: 100% !important;
43
+ padding: 1rem;
44
+ font-family: 'Poppins', sans-serif;
45
+ }
46
+ #header-title {
47
+ text-align: center;
48
+ font-weight: 700;
49
+ font-size: 2rem;
50
+ margin-bottom: 0.25rem;
51
+ }
52
+ #subtext {
53
+ text-align: center;
54
+ font-weight: 300;
55
+ font-size: 1rem;
56
+ margin-bottom: 1rem;
57
+ }
58
+ """
59
+ ) as demo:
60
+ with gr.Column():
61
+ gr.Markdown("Sambit AI", elem_id="header-title")
62
+ gr.Markdown("powered by acrilc", elem_id="subtext")
63
 
64
  chatbot = gr.Chatbot(label="Chat with Sambit AI", height=400)
65
  with gr.Row():
 
78
  msg.submit(respond, [msg, state], [chatbot, msg])
79
  clear.click(lambda: ([], ""), None, [chatbot, msg])
80
 
81
+ demo.launch()