Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Commit 
							
							·
						
						e4c42ff
	
1
								Parent(s):
							
							a02ee35
								
- app.py +9 -1
 - docker-compose.yaml +4 -3
 
    	
        app.py
    CHANGED
    
    | 
         @@ -31,7 +31,15 @@ def prefill_event(subdataset, event_idx): 
     | 
|
| 31 | 
         
             
            def gradio_ui():
         
     | 
| 32 | 
         
             
                with gr.Blocks() as demo:
         
     | 
| 33 | 
         
             
                    gr.Markdown("## Jet Clustering Demo")
         
     | 
| 34 | 
         
            -
             
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 35 | 
         
             
                    with gr.Row():
         
     | 
| 36 | 
         
             
                        loss_dropdown = gr.Dropdown(choices=["GP_IRC_SN", "GP_IRC_S", "GP", "base"], label="Loss Function", value="GP_IRC_SN")
         
     | 
| 37 | 
         
             
                        train_dataset_dropdown = gr.Dropdown(choices=["QCD", "900_03", "900_03+700_07", "700_07", "900_03+700_07+QCD"], label="Training Dataset", value="QCD")
         
     | 
| 
         | 
|
| 31 | 
         
             
            def gradio_ui():
         
     | 
| 32 | 
         
             
                with gr.Blocks() as demo:
         
     | 
| 33 | 
         
             
                    gr.Markdown("## Jet Clustering Demo")
         
     | 
| 34 | 
         
            +
                    # now put a short text explaining that the demo is very slow and if you want to run it on your machine, you can use the following docker-compose file:
         
     | 
| 35 | 
         
            +
                    # version: '3.8'
         
     | 
| 36 | 
         
            +
                    #
         
     | 
| 37 | 
         
            +
                    # services:
         
     | 
| 38 | 
         
            +
                    #   jetclustering_demo:
         
     | 
| 39 | 
         
            +
                    #     image: gkrz/jetclustering_demo_cpu:v0
         
     | 
| 40 | 
         
            +
                    #     ports:
         
     | 
| 41 | 
         
            +
                    #       - "7860:7860"
         
     | 
| 42 | 
         
            +
                    gr.Markdown("The live demo is very slow (usually takes 1-5 minutes for a single event). If you want to run it on your machine, you can use the following docker-compose file:\n\n```yaml\nversion: '3.8'\n\nservices:\n  jetclustering_demo:\n    image: gkrz/jetclustering_demo_cpu:v0\n    ports:\n      - '7860:7860'\n```")
         
     | 
| 43 | 
         
             
                    with gr.Row():
         
     | 
| 44 | 
         
             
                        loss_dropdown = gr.Dropdown(choices=["GP_IRC_SN", "GP_IRC_S", "GP", "base"], label="Loss Function", value="GP_IRC_SN")
         
     | 
| 45 | 
         
             
                        train_dataset_dropdown = gr.Dropdown(choices=["QCD", "900_03", "900_03+700_07", "700_07", "900_03+700_07+QCD"], label="Training Dataset", value="QCD")
         
     | 
    	
        docker-compose.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,8 @@ 
     | 
|
| 1 | 
         
            -
            version: '3'
         
     | 
| 2 | 
         | 
| 3 | 
         
             
            services:
         
     | 
| 4 | 
         
            -
               
     | 
| 5 | 
         
            -
                image: gkrz/ 
     | 
| 6 | 
         
             
                ports:
         
     | 
| 7 | 
         
             
                  - "7860:7860"
         
     | 
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version: '3.8'
         
     | 
| 2 | 
         | 
| 3 | 
         
             
            services:
         
     | 
| 4 | 
         
            +
              jetclustering_demo:
         
     | 
| 5 | 
         
            +
                image: gkrz/jetclustering_demo_cpu:v0
         
     | 
| 6 | 
         
             
                ports:
         
     | 
| 7 | 
         
             
                  - "7860:7860"
         
     | 
| 8 | 
         
            +
             
     |