Salt40404 commited on
Commit
2fdf191
·
verified ·
1 Parent(s): e33aa88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -11
app.py CHANGED
@@ -69,16 +69,19 @@ document.addEventListener("DOMContentLoaded", ()=>{
69
 
70
  with gr.Blocks(css="""
71
  body { background-color:#000; font-family:'Arial',sans-serif; margin:0; padding:0; }
72
- .gradio-container { border-radius:45px; padding:20px; max-width:700px; margin:30px auto; background-color:#121212; box-shadow:0 6px 25px rgba(0,0,0,0.3);}
73
- .chat-message { border-radius:45px; padding:14px 18px; margin:8px 0; display:flex; flex-direction:column; opacity:0;}
74
- .chat-message.user { background-color:#1f1f1f; color:#fff; align-items:flex-end;}
75
- .chat-message.bot { background-color:#2b2b2b; color:#fff; align-items:flex-start;}
76
- textarea { border:none; outline:none; border-radius:45px; padding:12px; background-color:#1a1a1a; color:#fff; font-size:16px; flex:1; height:48px; box-sizing:border-box;}
77
- .send-btn { border:none; border-radius:45px; background-color:#444; color:#fff; width:48px; height:48px; font-size:18px; display:flex; align-items:center; justify-content:center; cursor:pointer; margin-left:8px; transition:transform 0.1s ease;}
78
- .send-btn:hover { background-color:#555;}
79
- .gr-button.gr-login { border-radius:45px !important; background-color:#222 !important; color:#fff !important; margin-bottom:15px;}
80
- .gr-button.gr-login:hover { background-color:#444 !important;}
81
- .input-container { display:flex; margin-top:10px; }
 
 
 
82
  """) as demo:
83
 
84
  # Login direto na página
@@ -88,5 +91,5 @@ textarea { border:none; outline:none; border-radius:45px; padding:12px; backgrou
88
 
89
  gr.HTML(fade_js)
90
 
91
- if __name__=="__main__":
92
  demo.launch()
 
69
 
70
  with gr.Blocks(css="""
71
  body { background-color:#000; font-family:'Arial',sans-serif; margin:0; padding:0; }
72
+ .gradio-container { border-radius: 20px; padding: 20px; max-width: 700px; margin: 30px auto; background-color: #121212; box-shadow: 0 6px 25px rgba(0,0,0,0.3); }
73
+ .chat-message { border-radius: 20px; padding: 14px 18px; margin: 8px 0; display: flex; flex-direction: column; opacity: 0; }
74
+ .chat-message.user { background-color: #1f1f1f; color: #fff; align-items: flex-end; border-bottom-right-radius: 5px; }
75
+ .chat-message.bot { background-color: #2b2b2b; color: #fff; align-items: flex-start; border-bottom-left-radius: 5px; }
76
+ textarea { border: none; outline: none; border-radius: 25px; padding: 15px; background-color: #1a1a1a; color: #fff; font-size: 16px; flex: 1; height: 60px; box-sizing: border-box; resize: none; }
77
+ .send-btn { border: none; border-radius: 25px; background-color: #444; color: #fff; width: 60px; height: 60px; font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 8px; transition: transform 0.1s ease, background-color 0.2s ease; }
78
+ .send-btn:hover { background-color: #555; }
79
+ .gr-button.gr-login { border-radius: 25px !important; background-color: #222 !important; color: #fff !important; margin-bottom: 15px; padding: 12px 20px; }
80
+ .gr-button.gr-login:hover { background-color: #444 !important; }
81
+ .input-container { display: flex; margin-top: 10px; }
82
+ .gr-chatbot { border-radius: 15px; overflow: hidden; }
83
+ .gr-box { border-radius: 15px; }
84
+ .gr-button-primary { border-radius: 25px !important; }
85
  """) as demo:
86
 
87
  # Login direto na página
 
91
 
92
  gr.HTML(fade_js)
93
 
94
+ if __name__ == "__main__":
95
  demo.launch()