Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -65,9 +65,12 @@ interface = gr.Interface( 
     | 
|
| 65 | 
         
             
                inputs=gr.Image(type="pil", label="Upload an Image"),
         
     | 
| 66 | 
         
             
                outputs="text",
         
     | 
| 67 | 
         
             
                title="Image Caption Generator",
         
     | 
| 68 | 
         
            -
                description= 
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 69 | 
         
             
            )
         
     | 
| 70 | 
         
            -
             
     | 
| 71 | 
         
             
            # Launch the interface
         
     | 
| 72 | 
         
             
            print("Launching interface...")
         
     | 
| 73 | 
         
             
            interface.launch()
         
     | 
| 
         | 
|
| 65 | 
         
             
                inputs=gr.Image(type="pil", label="Upload an Image"),
         
     | 
| 66 | 
         
             
                outputs="text",
         
     | 
| 67 | 
         
             
                title="Image Caption Generator",
         
     | 
| 68 | 
         
            +
                description=(
         
     | 
| 69 | 
         
            +
                    f"The default question is: '{default_question}'. "
         
     | 
| 70 | 
         
            +
                    "Please note that the inference may take up to 200 seconds due to long captions and CPU limitations. "
         
     | 
| 71 | 
         
            +
                    "You can find the model [here](https://huggingface.co/irotem98/edge_vlm)."
         
     | 
| 72 | 
         
            +
                )
         
     | 
| 73 | 
         
             
            )
         
     | 
| 
         | 
|
| 74 | 
         
             
            # Launch the interface
         
     | 
| 75 | 
         
             
            print("Launching interface...")
         
     | 
| 76 | 
         
             
            interface.launch()
         
     |