danhtran2mind commited on
Commit
ab21ff0
·
verified ·
1 Parent(s): 25d9080

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +14 -9
gradio_app.py CHANGED
@@ -10,10 +10,7 @@ from generator import generate_response
10
 
11
  DESCRIPTION = '''
12
  <h1><span class="intro-icon">⚕️</span> Vietnamese Health Chat LoRA</h1>
13
- <h2>AI-Powered Medical Insights</h2>
14
- <div class="intro-highlight">
15
- <span class="emphasis">Discover advanced models fine-tuned with LoRA for precise medical reasoning in Vietnamese.</span>
16
- </div>
17
  <div class="intro-disclaimer">
18
  <span class="intro-icon">ℹ️</span> Important Notice:
19
  <span class="intro-purpose">
@@ -43,15 +40,15 @@ def create_ui(model_handler):
43
 
44
  chatbot = gr.Chatbot(
45
  elem_id="output-container",
46
- height=500,
47
  show_label=False,
48
  render_markdown=True
49
  )
50
 
51
  with gr.Row():
52
  msg = gr.Textbox(
53
- label="Message",
54
- placeholder="Enter your medical query in Vietnamese...",
55
  container=False,
56
  scale=4
57
  )
@@ -63,8 +60,16 @@ def create_ui(model_handler):
63
  )
64
 
65
  with gr.Row():
66
- clear_btn = gr.Button("Clear", variant='secondary')
67
- stop_btn = gr.Button("Stop", variant='stop')
 
 
 
 
 
 
 
 
68
 
69
  with gr.Row():
70
  with gr.Column(scale=1):
 
10
 
11
  DESCRIPTION = '''
12
  <h1><span class="intro-icon">⚕️</span> Vietnamese Health Chat LoRA</h1>
13
+ <h2>Discover advanced models fine-tuned with LoRA for precise medical reasoning in Vietnamese</h2>
 
 
 
14
  <div class="intro-disclaimer">
15
  <span class="intro-icon">ℹ️</span> Important Notice:
16
  <span class="intro-purpose">
 
40
 
41
  chatbot = gr.Chatbot(
42
  elem_id="output-container",
43
+ height=250,
44
  show_label=False,
45
  render_markdown=True
46
  )
47
 
48
  with gr.Row():
49
  msg = gr.Textbox(
50
+ label="Your Medical Query",
51
+ placeholder="Ask about symptoms, treatments, or medical advice in Vietnamese...",
52
  container=False,
53
  scale=4
54
  )
 
60
  )
61
 
62
  with gr.Row():
63
+ clear_btn = gr.Button(
64
+ value="Clear",
65
+ variant='secondary',
66
+ elem_classes="clear-button"
67
+ )
68
+ stop_btn = gr.Button(
69
+ value="Stop",
70
+ variant='stop',
71
+ elem_classes="stop-button"
72
+ )
73
 
74
  with gr.Row():
75
  with gr.Column(scale=1):