'1'
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -8,19 +8,17 @@ def test(text): 
     | 
|
| 8 | 
         | 
| 9 | 
         
             
                client = Client("stabilityai/stable-fast-3d")
         
     | 
| 10 | 
         | 
| 11 | 
         
            -
                result = client.predict(
         
     | 
| 12 | 
         
            -
                    input_image=file('https://stabilityai-stable-fast-3d.hf.space/file=/tmp/gradio/cedf71215ac1d8f6d44cd9cc94a65c5c2b5b76b0/banana.jpg'),
         
     | 
| 13 | 
         
            -
                    foreground_ratio=0.85,
         
     | 
| 14 | 
         
            -
                    api_name="/run_button"
         
     | 
| 15 | 
         
            -
                )
         
     | 
| 16 | 
         
            -
             
     | 
| 17 | 
         
            -
                # client = Client("stabilityai/TripoSR")
         
     | 
| 18 | 
         
             
                # result = client.predict(
         
     | 
| 19 | 
         
            -
                # 
     | 
| 20 | 
         
            -
                # 
     | 
| 21 | 
         
            -
                # 
     | 
| 22 | 
         
             
                # )
         
     | 
| 23 | 
         | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 24 | 
         
             
                return result
         
     | 
| 25 | 
         | 
| 26 | 
         | 
| 
         | 
|
| 8 | 
         | 
| 9 | 
         
             
                client = Client("stabilityai/stable-fast-3d")
         
     | 
| 10 | 
         | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 11 | 
         
             
                # result = client.predict(
         
     | 
| 12 | 
         
            +
                #     input_image=file('https://stabilityai-stable-fast-3d.hf.space/file=/tmp/gradio/cedf71215ac1d8f6d44cd9cc94a65c5c2b5b76b0/banana.jpg'),
         
     | 
| 13 | 
         
            +
                #     foreground_ratio=0.85,
         
     | 
| 14 | 
         
            +
                #     api_name="/run_button"
         
     | 
| 15 | 
         
             
                # )
         
     | 
| 16 | 
         | 
| 17 | 
         
            +
                result = client.predict(
         
     | 
| 18 | 
         
            +
            		image=file('https://stabilityai-stable-fast-3d.hf.space/file=/tmp/gradio/cedf71215ac1d8f6d44cd9cc94a65c5c2b5b76b0/banana.jpg'),
         
     | 
| 19 | 
         
            +
            		fr=0.85,
         
     | 
| 20 | 
         
            +
            		api_name="/requires_bg_remove"
         
     | 
| 21 | 
         
            +
                )
         
     | 
| 22 | 
         
             
                return result
         
     | 
| 23 | 
         | 
| 24 | 
         |