prithivMLmods commited on
Commit
96fef1f
·
verified ·
1 Parent(s): 697ce61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -14
app.py CHANGED
@@ -15,18 +15,6 @@ DESCRIPTION = '''
15
  </div>
16
  '''
17
 
18
- css = """
19
- h1 {
20
- text-align: center;
21
- display: block;
22
- }
23
- #duplicate-button {
24
- margin: auto;
25
- color: white;
26
- background: #1565c0;
27
- border-radius: 100vh;
28
- }
29
- """
30
 
31
  # Load the tokenizer and model
32
  tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
@@ -77,14 +65,13 @@ def gpt4o_mistral(message: str,
77
  # Gradio block
78
  chatbot=gr.Chatbot(height=450, label='Gradio ChatInterface')
79
 
80
- with gr.Blocks(fill_height=True, css=css) as demo:
81
 
82
  gr.Markdown(DESCRIPTION)
83
  gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
84
  gr.ChatInterface(
85
  fn=gpt4o_mistral,
86
  chatbot=chatbot,
87
- theme="xiaobaiyuan/theme_brief",
88
  fill_height=True,
89
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
90
  additional_inputs=[
 
15
  </div>
16
  '''
17
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  # Load the tokenizer and model
20
  tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.3")
 
65
  # Gradio block
66
  chatbot=gr.Chatbot(height=450, label='Gradio ChatInterface')
67
 
68
+ with gr.Blocks(fill_height=True, css="xiaobaiyuan/theme_brief") as demo:
69
 
70
  gr.Markdown(DESCRIPTION)
71
  gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
72
  gr.ChatInterface(
73
  fn=gpt4o_mistral,
74
  chatbot=chatbot,
 
75
  fill_height=True,
76
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
77
  additional_inputs=[