aadya1762 commited on
Commit
8857914
·
1 Parent(s): 9946981

UI cleanup

Browse files
Files changed (1) hide show
  1. gemmademo/_chat.py +24 -25
gemmademo/_chat.py CHANGED
@@ -102,31 +102,30 @@ class GradioChat:
102
 
103
  with gr.Blocks() as demo:
104
  with gr.Row():
105
- with gr.Accordion(
106
- "Basic Settings ⚙️", open=False
107
- ): # Make the sidebar foldable
108
- with gr.Column(scale=3): # Sidebar column
109
- gr.Markdown(
110
- "## Google Gemma Models: lightweight, state-of-the-art open models from Google"
111
- )
112
- task_dropdown = gr.Dropdown(
113
- choices=self.task_options,
114
- value=self.current_task_name,
115
- label="Select Task",
116
- )
117
- model_dropdown = gr.Dropdown(
118
- choices=self.model_options,
119
- value=self.current_model_name,
120
- label="Select Gemma Model",
121
- )
122
-
123
- chat_interface = gr.ChatInterface(
124
- chat_fn,
125
- additional_inputs=[model_dropdown, task_dropdown],
126
- textbox=gr.Textbox(
127
- placeholder="Ask me something...", container=False
128
- ),
129
- )
130
 
131
  with gr.Column(scale=1):
132
  gr.Markdown(
 
102
 
103
  with gr.Blocks() as demo:
104
  with gr.Row():
105
+ with gr.Column(scale=3): # Sidebar column
106
+ with gr.Accordion(
107
+ "Basic Settings ⚙️", open=False
108
+ ): # Make the sidebar foldable
109
+ gr.Markdown(
110
+ "## Google Gemma Models: lightweight, state-of-the-art open models from Google"
111
+ )
112
+ task_dropdown = gr.Dropdown(
113
+ choices=self.task_options,
114
+ value=self.current_task_name,
115
+ label="Select Task",
116
+ )
117
+ model_dropdown = gr.Dropdown(
118
+ choices=self.model_options,
119
+ value=self.current_model_name,
120
+ label="Select Gemma Model",
121
+ )
122
+ chat_interface = gr.ChatInterface(
123
+ chat_fn,
124
+ additional_inputs=[model_dropdown, task_dropdown],
125
+ textbox=gr.Textbox(
126
+ placeholder="Ask me something...", container=False
127
+ ),
128
+ )
 
129
 
130
  with gr.Column(scale=1):
131
  gr.Markdown(