Tingxie commited on
Commit
b1c263e
·
1 Parent(s): 3ab9362

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -421,14 +421,6 @@ with gr.Blocks(theme=seafoam) as demo:
421
  with gr.Row():
422
  with gr.Column():
423
  peak_data = gr.File(file_count="single", label="Upload MS/MS spectrum file in .msp format", elem_classes=".file-upload-height")
424
- gr.Examples(
425
- examples=[
426
- ["example_spectrum.msp", "HCD", "[M+H]+", "428.0356", "40"]
427
- ],
428
- inputs=[peak_data, instru, ionmode, par_ion_mass, collision_e],
429
- outputs=[spectrum_output],
430
- label="Upload Example Spectrum"
431
- )
432
  spectrum_output = gr.Plot(label="Mass Spectrum",elem_id="custom_plot")
433
  peak_data.change(fn=draw_mass_spectrum, inputs=[peak_data], outputs=[spectrum_output])
434
  with gr.Row():
@@ -436,6 +428,14 @@ with gr.Blocks(theme=seafoam) as demo:
436
  ionmode=gr.Dropdown(["[M+H]+"], label="Adduct Type")
437
  par_ion_mass=gr.Textbox(label="Parent Ion Mass",placeholder="e.g., 180.00")
438
  collision_e=gr.Textbox(label="collision energy", placeholder="e.g., 40")
 
 
 
 
 
 
 
 
439
  with gr.Tab(label="📶 Struture library", elem_id='custom_tab'):
440
  with gr.Column():
441
  dataset = gr.Dropdown(["CSU_MS2_DB",
 
421
  with gr.Row():
422
  with gr.Column():
423
  peak_data = gr.File(file_count="single", label="Upload MS/MS spectrum file in .msp format", elem_classes=".file-upload-height")
 
 
 
 
 
 
 
 
424
  spectrum_output = gr.Plot(label="Mass Spectrum",elem_id="custom_plot")
425
  peak_data.change(fn=draw_mass_spectrum, inputs=[peak_data], outputs=[spectrum_output])
426
  with gr.Row():
 
428
  ionmode=gr.Dropdown(["[M+H]+"], label="Adduct Type")
429
  par_ion_mass=gr.Textbox(label="Parent Ion Mass",placeholder="e.g., 180.00")
430
  collision_e=gr.Textbox(label="collision energy", placeholder="e.g., 40")
431
+ gr.Examples(
432
+ examples=[
433
+ ["example_spectrum.msp", "HCD", "[M+H]+", "428.0356", "40"]
434
+ ],
435
+ inputs=[peak_data, instru, ionmode, par_ion_mass, collision_e],
436
+ outputs=[spectrum_output],
437
+ label="Upload Example Spectrum"
438
+ )
439
  with gr.Tab(label="📶 Struture library", elem_id='custom_tab'):
440
  with gr.Column():
441
  dataset = gr.Dropdown(["CSU_MS2_DB",