naourpally commited on
Commit
5d2cd5f
·
1 Parent(s): 807df8d

Update the header

Browse files
Files changed (1) hide show
  1. app.py +19 -2
app.py CHANGED
@@ -38,7 +38,24 @@ css = """
38
  """
39
 
40
  with gr.Blocks(css=css) as demo:
41
- gr.Markdown("<div class='header-title'>Fair Compute Llama-2 Chat</div>")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  with gr.Row():
44
  prompt = gr.Textbox(label="Enter your prompt")
@@ -48,7 +65,7 @@ with gr.Blocks(css=css) as demo:
48
 
49
  submit_button.click(fn=get_text_response, inputs=prompt, outputs=output)
50
  clear_button.click(fn=clear_chat, inputs=[], outputs=[prompt, output])
51
- gr.Markdown(
52
  """
53
  <div class="acknowledgments">
54
  <p>Run AI models on your home computers, powered by <a href="https://faircompute.com/" style="text-decoration: underline;" target="_blank">FairCompute</a></p>
 
38
  """
39
 
40
  with gr.Blocks(css=css) as demo:
41
+ gr.HTML(
42
+ """
43
+ <div style="text-align: center; max-width: 650px; margin: 0 auto; padding-top: 7px;">
44
+ <div
45
+ style="
46
+ display: inline-flex;
47
+ align-items: center;
48
+ gap: 0.8rem;
49
+ font-size: 1.75rem;
50
+ "
51
+ >
52
+ <h1 style="font-weight: 900; margin-bottom: 7px;">
53
+ Fair Compute Llama-2 Chat
54
+ </h1>
55
+ </div>
56
+ </div>
57
+ """
58
+ )
59
 
60
  with gr.Row():
61
  prompt = gr.Textbox(label="Enter your prompt")
 
65
 
66
  submit_button.click(fn=get_text_response, inputs=prompt, outputs=output)
67
  clear_button.click(fn=clear_chat, inputs=[], outputs=[prompt, output])
68
+ gr.HTML(
69
  """
70
  <div class="acknowledgments">
71
  <p>Run AI models on your home computers, powered by <a href="https://faircompute.com/" style="text-decoration: underline;" target="_blank">FairCompute</a></p>