Spaces:
Running
on
Zero
Running
on
Zero
Anton Bushuiev
commited on
Commit
·
6a3bcfb
1
Parent(s):
f32e93f
Update examples
Browse files
app.py
CHANGED
@@ -122,8 +122,10 @@ def setup():
|
|
122 |
urllib.request.urlretrieve(url, target_path)
|
123 |
|
124 |
# Download example file
|
125 |
-
example_url = 'https://huggingface.co/datasets/titodamiani/PiperNET/resolve/main/lcms/rawfiles/202312_147_P55-Leaf-r2_1uL.mzML'
|
126 |
-
example_path = Path('./data/202312_147_P55-Leaf-r2_1uL.mzML')
|
|
|
|
|
127 |
example_path.parent.mkdir(parents=True, exist_ok=True)
|
128 |
if not example_path.exists():
|
129 |
urllib.request.urlretrieve(example_url, example_path)
|
@@ -288,8 +290,7 @@ with app:
|
|
288 |
)
|
289 |
lib_pth = Path('DreaMS/data/MassSpecGym_DreaMS.hdf5') # MassSpecGym library
|
290 |
examples = gr.Examples(
|
291 |
-
examples=["./data/example_5_spectra.mgf", "./data/
|
292 |
-
# examples=["./data/S_N1.mzML", "./data/example_5_spectra.mgf"],
|
293 |
inputs=[in_pth],
|
294 |
label="Examples (click on a file to load as input)",
|
295 |
# TODO
|
|
|
122 |
urllib.request.urlretrieve(url, target_path)
|
123 |
|
124 |
# Download example file
|
125 |
+
# example_url = 'https://huggingface.co/datasets/titodamiani/PiperNET/resolve/main/lcms/rawfiles/202312_147_P55-Leaf-r2_1uL.mzML'
|
126 |
+
# example_path = Path('./data/202312_147_P55-Leaf-r2_1uL.mzML')
|
127 |
+
example_url = 'https://huggingface.co/datasets/roman-bushuiev/GeMS/resolve/main/data/auxiliary/example_piper_2k_spectra.mgf'
|
128 |
+
example_path = Path('./data/example_piper_2k_spectra.mgf')
|
129 |
example_path.parent.mkdir(parents=True, exist_ok=True)
|
130 |
if not example_path.exists():
|
131 |
urllib.request.urlretrieve(example_url, example_path)
|
|
|
290 |
)
|
291 |
lib_pth = Path('DreaMS/data/MassSpecGym_DreaMS.hdf5') # MassSpecGym library
|
292 |
examples = gr.Examples(
|
293 |
+
examples=["./data/example_5_spectra.mgf", "./data/example_piper_2k_spectra.mgf"],
|
|
|
294 |
inputs=[in_pth],
|
295 |
label="Examples (click on a file to load as input)",
|
296 |
# TODO
|