taishi-i commited on
Commit
81fceff
1 Parent(s): d27737e

update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -25
app.py CHANGED
@@ -148,32 +148,34 @@ with gr.Blocks() as demo:
148
  )
149
 
150
  query = gr.Textbox(label="Search words", placeholder="llm")
151
- languages = [
152
- "Python",
153
- "Jupyter Notebook",
154
- "Java",
155
- "C++",
156
- "JavaScript",
157
- "TypeScript",
158
- "C#",
159
- "Rust",
160
- "Go",
161
- "C",
162
- "Kotlin",
163
- "Ruby",
164
- "Perl",
165
- ]
166
-
167
- language_selector = gr.Dropdown(
168
- label="Programming Language",
169
- choices=languages,
170
- )
171
 
172
- source_checkbox = gr.CheckboxGroup(
173
- ["GitHub", "Hugging Face", "Dataset", "Model"],
174
- value=["GitHub", "Hugging Face"],
175
- label="Source",
176
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
 
178
  show_checkbox = gr.CheckboxGroup(
179
  [
 
148
  )
149
 
150
  query = gr.Textbox(label="Search words", placeholder="llm")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
 
152
+ with gr.Row():
153
+ source_checkbox = gr.CheckboxGroup(
154
+ ["GitHub", "Hugging Face", "Dataset", "Model"],
155
+ value=["GitHub", "Hugging Face"],
156
+ label="Source",
157
+ )
158
+
159
+ languages = [
160
+ "Python",
161
+ "Jupyter Notebook",
162
+ "Java",
163
+ "C++",
164
+ "JavaScript",
165
+ "TypeScript",
166
+ "C#",
167
+ "Rust",
168
+ "Go",
169
+ "C",
170
+ "Kotlin",
171
+ "Ruby",
172
+ "Perl",
173
+ ]
174
+
175
+ language_selector = gr.Dropdown(
176
+ label="Programming Language",
177
+ choices=languages,
178
+ )
179
 
180
  show_checkbox = gr.CheckboxGroup(
181
  [