ashimanair commited on
Commit
c91f7b4
·
verified ·
1 Parent(s): 930c92e

adding colors i hope

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py CHANGED
@@ -2,6 +2,28 @@ import gradio as gr
2
  import random
3
  from huggingface_hub import InferenceClient
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  client = InferenceClient ("HuggingFaceH4/zephyr-7b-beta") #change the LLM
6
 
7
  def respond(message, history):
 
2
  import random
3
  from huggingface_hub import InferenceClient
4
 
5
+ custom_css = """
6
+ body {
7
+ background-color: #1e1e1e; /* dark background */
8
+ color: white; /* white text */
9
+ }
10
+ .gr-button {
11
+ background-color: #007acc;
12
+ color: white;
13
+ }
14
+ .gr-textbox {
15
+ background-color: #333;
16
+ color: #fff;
17
+ }
18
+ """
19
+ with gr.Blocks(css=custom_css) as demo:
20
+ gr.Markdown("## 👋 Welcome to the Custom Styled App")
21
+ name = gr.Textbox(label="Enter your name")
22
+ greet_btn = gr.Button("Greet Me")
23
+ output = gr.Textbox(label="Output")
24
+
25
+ greet_btn.click(fn=greet, inputs=name, outputs=output)
26
+
27
  client = InferenceClient ("HuggingFaceH4/zephyr-7b-beta") #change the LLM
28
 
29
  def respond(message, history):