2024-10-19 08:56:01 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 08:56:01 | ERROR | stderr | warnings.warn( 2024-10-19 08:56:01 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 08:56:01 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 08:56:01 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 08:56:01 | ERROR | stderr | /home/user/app/app.py:697: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead. 2024-10-19 08:56:01 | ERROR | stderr | chatbot = gr.Chatbot(elem_id="chatbot", label="FERRET", visible=False).style(height=750) 2024-10-19 08:56:01 | INFO | stdout | Running on local URL: http://0.0.0.0:7860 2024-10-19 08:56:01 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2134: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 08:56:01 | ERROR | stderr | warnings.warn( 2024-10-19 08:56:01 | INFO | stdout | 2024-10-19 08:56:01 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 08:56:01 | INFO | stdout | IMPORTANT: You are using gradio version 3.50.1, however version 4.44.1 is available, please upgrade. 2024-10-19 08:56:01 | INFO | stdout | -------- 2024-10-19 08:56:02 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/dropdown.py:176: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Dropdown(...)` instead of `return gr.Dropdown.update(...)`. 2024-10-19 08:56:02 | ERROR | stderr | warnings.warn( 2024-10-19 08:56:02 | INFO | stdout | state Conversation(system='A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.', roles=('user', 'model'), messages=[], offset=0, sep_style=, sep='', sep2='', version='gemma', skip_next=False) 2024-10-19 08:56:02 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:161: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Chatbot(...)` instead of `return gr.Chatbot.update(...)`. 2024-10-19 08:56:02 | ERROR | stderr | warnings.warn( 2024-10-19 08:56:02 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/textbox.py:163: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Textbox(...)` instead of `return gr.Textbox.update(...)`. 2024-10-19 08:56:02 | ERROR | stderr | warnings.warn( 2024-10-19 08:56:02 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 08:56:02 | ERROR | stderr | warnings.warn( 2024-10-19 08:58:39 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction 2024-10-19 08:58:39 | ERROR | stderr | output = await route_utils.call_process_api( 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api 2024-10-19 08:58:39 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1548, in process_api 2024-10-19 08:58:39 | ERROR | stderr | inputs = self.preprocess_data(fn_index, inputs, state) 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1329, in preprocess_data 2024-10-19 08:58:39 | ERROR | stderr | processed_input.append(block.preprocess(inputs[i])) 2024-10-19 08:58:39 | ERROR | stderr | File "/home/user/app/app.py", line 552, in preprocess 2024-10-19 08:58:39 | ERROR | stderr | return super().preprocess(x) 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/components/image.py", line 253, in preprocess 2024-10-19 08:58:39 | ERROR | stderr | assert isinstance(x, dict) 2024-10-19 08:58:39 | ERROR | stderr | AssertionError 2024-10-19 08:58:39 | INFO | stdout | state messages: [] 2024-10-19 08:58:39 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': 'List of 0 images: []'} 2024-10-19 08:58:39 | INFO | stdout | Input Prompt: A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions. 2024-10-19 08:58:39 | INFO | stdout | all_image_hash [] 2024-10-19 08:58:39 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction 2024-10-19 08:58:39 | ERROR | stderr | output = await route_utils.call_process_api( 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api 2024-10-19 08:58:39 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api 2024-10-19 08:58:39 | ERROR | stderr | result = await self.call_function( 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1199, in call_function 2024-10-19 08:58:39 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 519, in async_iteration 2024-10-19 08:58:39 | ERROR | stderr | return await iterator.__anext__() 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 512, in __anext__ 2024-10-19 08:58:39 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 08:58:39 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 08:58:39 | ERROR | stderr | return await future 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 08:58:39 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 495, in run_sync_iterator_async 2024-10-19 08:58:39 | ERROR | stderr | return next(iterator) 2024-10-19 08:58:39 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 649, in gen_wrapper 2024-10-19 08:58:39 | ERROR | stderr | yield from f(*args, **kwargs) 2024-10-19 08:58:39 | ERROR | stderr | File "/home/user/app/app.py", line 446, in http_bot 2024-10-19 08:58:39 | ERROR | stderr | state.messages[-1][-1] = "▌" 2024-10-19 08:58:39 | ERROR | stderr | IndexError: list index out of range 2024-10-19 15:56:08 | INFO | stdout | state Conversation(system='A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.', roles=('user', 'model'), messages=[], offset=0, sep_style=, sep='', sep2='', version='gemma', skip_next=False) 2024-10-19 18:16:52 | INFO | stdout | state Conversation(system='A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.', roles=('user', 'model'), messages=[], offset=0, sep_style=, sep='', sep2='', version='gemma', skip_next=False) 2024-10-19 18:18:57 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 18:18:57 | ERROR | stderr | warnings.warn( 2024-10-19 18:18:57 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:18:57 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:18:57 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:18:57 | ERROR | stderr | /home/user/app/app.py:702: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead. 2024-10-19 18:18:57 | ERROR | stderr | chatbot = gr.Chatbot(elem_id="chatbot", label="FERRET", visible=False).style(height=750) 2024-10-19 18:18:57 | INFO | stdout | Running on local URL: http://0.0.0.0:7860 2024-10-19 18:18:57 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2134: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 18:18:57 | ERROR | stderr | warnings.warn( 2024-10-19 18:18:57 | INFO | stdout | 2024-10-19 18:18:57 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 18:18:57 | INFO | stdout | IMPORTANT: You are using gradio version 3.50.1, however version 4.44.1 is available, please upgrade. 2024-10-19 18:18:57 | INFO | stdout | -------- 2024-10-19 18:18:57 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/dropdown.py:176: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Dropdown(...)` instead of `return gr.Dropdown.update(...)`. 2024-10-19 18:18:57 | ERROR | stderr | warnings.warn( 2024-10-19 18:18:57 | INFO | stdout | state Conversation(system='A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.', roles=('user', 'model'), messages=[], offset=0, sep_style=, sep='', sep2='', version='gemma', skip_next=False) 2024-10-19 18:18:57 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:161: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Chatbot(...)` instead of `return gr.Chatbot.update(...)`. 2024-10-19 18:18:57 | ERROR | stderr | warnings.warn( 2024-10-19 18:18:57 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/textbox.py:163: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Textbox(...)` instead of `return gr.Textbox.update(...)`. 2024-10-19 18:18:57 | ERROR | stderr | warnings.warn( 2024-10-19 18:18:57 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 18:18:57 | ERROR | stderr | warnings.warn( 2024-10-19 18:19:25 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction 2024-10-19 18:19:25 | ERROR | stderr | output = await route_utils.call_process_api( 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api 2024-10-19 18:19:25 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1548, in process_api 2024-10-19 18:19:25 | ERROR | stderr | inputs = self.preprocess_data(fn_index, inputs, state) 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1329, in preprocess_data 2024-10-19 18:19:25 | ERROR | stderr | processed_input.append(block.preprocess(inputs[i])) 2024-10-19 18:19:25 | ERROR | stderr | File "/home/user/app/app.py", line 557, in preprocess 2024-10-19 18:19:25 | ERROR | stderr | return super().preprocess(x) 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/components/image.py", line 253, in preprocess 2024-10-19 18:19:25 | ERROR | stderr | assert isinstance(x, dict) 2024-10-19 18:19:25 | ERROR | stderr | AssertionError 2024-10-19 18:19:25 | INFO | stdout | state messages: [] 2024-10-19 18:19:25 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': 'List of 0 images: []'} 2024-10-19 18:19:25 | INFO | stdout | Input Prompt: A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions. 2024-10-19 18:19:25 | INFO | stdout | all_image_hash [] 2024-10-19 18:19:25 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction 2024-10-19 18:19:25 | ERROR | stderr | output = await route_utils.call_process_api( 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api 2024-10-19 18:19:25 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api 2024-10-19 18:19:25 | ERROR | stderr | result = await self.call_function( 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1199, in call_function 2024-10-19 18:19:25 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 519, in async_iteration 2024-10-19 18:19:25 | ERROR | stderr | return await iterator.__anext__() 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 512, in __anext__ 2024-10-19 18:19:25 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:19:25 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:19:25 | ERROR | stderr | return await future 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:19:25 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 495, in run_sync_iterator_async 2024-10-19 18:19:25 | ERROR | stderr | return next(iterator) 2024-10-19 18:19:25 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 649, in gen_wrapper 2024-10-19 18:19:25 | ERROR | stderr | yield from f(*args, **kwargs) 2024-10-19 18:19:25 | ERROR | stderr | File "/home/user/app/app.py", line 451, in http_bot 2024-10-19 18:19:25 | ERROR | stderr | state.messages[-1][-1] = "▌" 2024-10-19 18:19:25 | ERROR | stderr | IndexError: list index out of range 2024-10-19 18:19:58 | INFO | stdout | state Conversation(system='A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.', roles=('user', 'model'), messages=[], offset=0, sep_style=, sep='', sep2='', version='gemma', skip_next=False) 2024-10-19 18:20:08 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction 2024-10-19 18:20:08 | ERROR | stderr | output = await route_utils.call_process_api( 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api 2024-10-19 18:20:08 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1548, in process_api 2024-10-19 18:20:08 | ERROR | stderr | inputs = self.preprocess_data(fn_index, inputs, state) 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1329, in preprocess_data 2024-10-19 18:20:08 | ERROR | stderr | processed_input.append(block.preprocess(inputs[i])) 2024-10-19 18:20:08 | ERROR | stderr | File "/home/user/app/app.py", line 557, in preprocess 2024-10-19 18:20:08 | ERROR | stderr | return super().preprocess(x) 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/components/image.py", line 253, in preprocess 2024-10-19 18:20:08 | ERROR | stderr | assert isinstance(x, dict) 2024-10-19 18:20:08 | ERROR | stderr | AssertionError 2024-10-19 18:20:08 | INFO | stdout | state messages: [] 2024-10-19 18:20:08 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': 'List of 0 images: []'} 2024-10-19 18:20:08 | INFO | stdout | Input Prompt: A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions. 2024-10-19 18:20:08 | INFO | stdout | all_image_hash [] 2024-10-19 18:20:08 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction 2024-10-19 18:20:08 | ERROR | stderr | output = await route_utils.call_process_api( 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api 2024-10-19 18:20:08 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api 2024-10-19 18:20:08 | ERROR | stderr | result = await self.call_function( 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1199, in call_function 2024-10-19 18:20:08 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 519, in async_iteration 2024-10-19 18:20:08 | ERROR | stderr | return await iterator.__anext__() 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 512, in __anext__ 2024-10-19 18:20:08 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:20:08 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:20:08 | ERROR | stderr | return await future 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:20:08 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 495, in run_sync_iterator_async 2024-10-19 18:20:08 | ERROR | stderr | return next(iterator) 2024-10-19 18:20:08 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 649, in gen_wrapper 2024-10-19 18:20:08 | ERROR | stderr | yield from f(*args, **kwargs) 2024-10-19 18:20:08 | ERROR | stderr | File "/home/user/app/app.py", line 451, in http_bot 2024-10-19 18:20:08 | ERROR | stderr | state.messages[-1][-1] = "▌" 2024-10-19 18:20:08 | ERROR | stderr | IndexError: list index out of range 2024-10-19 18:25:32 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 18:25:32 | ERROR | stderr | warnings.warn( 2024-10-19 18:25:32 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:25:32 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:25:32 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:25:32 | ERROR | stderr | /home/user/app/app.py:702: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead. 2024-10-19 18:25:32 | ERROR | stderr | chatbot = gr.Chatbot(elem_id="chatbot", label="FERRET", visible=False).style(height=750) 2024-10-19 18:25:32 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:25:32 | ERROR | stderr | File "/home/user/app/app.py", line 797, in 2024-10-19 18:25:32 | ERROR | stderr | demo = build_demo(args.embed) 2024-10-19 18:25:32 | ERROR | stderr | File "/home/user/app/app.py", line 754, in build_demo 2024-10-19 18:25:32 | ERROR | stderr | inputs=[state, model_selector, temperature, top_p, max_new_tokens, refer_input_state], # Inputs for `http_bot` 2024-10-19 18:25:32 | ERROR | stderr | NameError: name 'max_new_tokens' is not defined 2024-10-19 18:25:32 | INFO | stdout | IMPORTANT: You are using gradio version 3.50.1, however version 4.44.1 is available, please upgrade. 2024-10-19 18:25:32 | INFO | stdout | -------- 2024-10-19 18:25:52 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 18:25:52 | ERROR | stderr | warnings.warn( 2024-10-19 18:25:52 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:25:52 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:25:52 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:25:52 | ERROR | stderr | /home/user/app/app.py:702: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead. 2024-10-19 18:25:52 | ERROR | stderr | chatbot = gr.Chatbot(elem_id="chatbot", label="FERRET", visible=False).style(height=750) 2024-10-19 18:25:52 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:25:52 | ERROR | stderr | File "/home/user/app/app.py", line 797, in 2024-10-19 18:25:52 | ERROR | stderr | demo = build_demo(args.embed) 2024-10-19 18:25:52 | ERROR | stderr | File "/home/user/app/app.py", line 754, in build_demo 2024-10-19 18:25:52 | ERROR | stderr | inputs=[state, model_selector, temperature, top_p, max_new_tokens, refer_input_state], # Inputs for `http_bot` 2024-10-19 18:25:52 | ERROR | stderr | NameError: name 'max_new_tokens' is not defined 2024-10-19 18:25:52 | INFO | stdout | IMPORTANT: You are using gradio version 3.50.1, however version 4.44.1 is available, please upgrade. 2024-10-19 18:25:52 | INFO | stdout | -------- 2024-10-19 18:26:18 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 18:26:18 | ERROR | stderr | warnings.warn( 2024-10-19 18:26:18 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:26:18 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:26:18 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:26:18 | ERROR | stderr | /home/user/app/app.py:702: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead. 2024-10-19 18:26:18 | ERROR | stderr | chatbot = gr.Chatbot(elem_id="chatbot", label="FERRET", visible=False).style(height=750) 2024-10-19 18:26:18 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:26:18 | ERROR | stderr | File "/home/user/app/app.py", line 797, in 2024-10-19 18:26:18 | ERROR | stderr | demo = build_demo(args.embed) 2024-10-19 18:26:18 | ERROR | stderr | File "/home/user/app/app.py", line 754, in build_demo 2024-10-19 18:26:18 | ERROR | stderr | inputs=[state, model_selector, temperature, top_p, max_new_tokens, refer_input_state], # Inputs for `http_bot` 2024-10-19 18:26:18 | ERROR | stderr | NameError: name 'max_new_tokens' is not defined 2024-10-19 18:26:18 | INFO | stdout | IMPORTANT: You are using gradio version 3.50.1, however version 4.44.1 is available, please upgrade. 2024-10-19 18:26:18 | INFO | stdout | -------- 2024-10-19 18:27:07 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 18:27:07 | ERROR | stderr | warnings.warn( 2024-10-19 18:27:07 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:27:07 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:27:07 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:27:07 | ERROR | stderr | /home/user/app/app.py:702: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead. 2024-10-19 18:27:07 | ERROR | stderr | chatbot = gr.Chatbot(elem_id="chatbot", label="FERRET", visible=False).style(height=750) 2024-10-19 18:27:07 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:27:07 | ERROR | stderr | File "/home/user/app/app.py", line 797, in 2024-10-19 18:27:07 | ERROR | stderr | demo = build_demo(args.embed) 2024-10-19 18:27:07 | ERROR | stderr | File "/home/user/app/app.py", line 754, in build_demo 2024-10-19 18:27:07 | ERROR | stderr | inputs=[state, model_selector, temperature, top_p, max_new_tokens, refer_input_state], # Inputs for `http_bot` 2024-10-19 18:27:07 | ERROR | stderr | NameError: name 'max_new_tokens' is not defined 2024-10-19 18:27:07 | INFO | stdout | IMPORTANT: You are using gradio version 3.50.1, however version 4.44.1 is available, please upgrade. 2024-10-19 18:27:07 | INFO | stdout | -------- 2024-10-19 18:27:45 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 18:27:45 | ERROR | stderr | warnings.warn( 2024-10-19 18:27:45 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:27:45 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:27:45 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:27:45 | ERROR | stderr | /home/user/app/app.py:702: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead. 2024-10-19 18:27:45 | ERROR | stderr | chatbot = gr.Chatbot(elem_id="chatbot", label="FERRET", visible=False).style(height=750) 2024-10-19 18:27:46 | INFO | stdout | Running on local URL: http://0.0.0.0:7860 2024-10-19 18:27:46 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2134: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 18:27:46 | ERROR | stderr | warnings.warn( 2024-10-19 18:27:46 | INFO | stdout | 2024-10-19 18:27:46 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 18:27:46 | INFO | stdout | IMPORTANT: You are using gradio version 3.50.1, however version 4.44.1 is available, please upgrade. 2024-10-19 18:27:46 | INFO | stdout | -------- 2024-10-19 18:27:46 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/dropdown.py:176: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Dropdown(...)` instead of `return gr.Dropdown.update(...)`. 2024-10-19 18:27:46 | ERROR | stderr | warnings.warn( 2024-10-19 18:27:46 | INFO | stdout | state Conversation(system='A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.', roles=('user', 'model'), messages=[], offset=0, sep_style=, sep='', sep2='', version='gemma', skip_next=False) 2024-10-19 18:27:46 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:161: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Chatbot(...)` instead of `return gr.Chatbot.update(...)`. 2024-10-19 18:27:46 | ERROR | stderr | warnings.warn( 2024-10-19 18:27:46 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/textbox.py:163: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Textbox(...)` instead of `return gr.Textbox.update(...)`. 2024-10-19 18:27:46 | ERROR | stderr | warnings.warn( 2024-10-19 18:27:46 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 18:27:46 | ERROR | stderr | warnings.warn( 2024-10-19 18:29:35 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 18:29:35 | ERROR | stderr | warnings.warn( 2024-10-19 18:29:35 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:29:35 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:29:35 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:29:35 | ERROR | stderr | /home/user/app/app.py:702: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead. 2024-10-19 18:29:35 | ERROR | stderr | chatbot = gr.Chatbot(elem_id="chatbot", label="FERRET", visible=False).style(height=750) 2024-10-19 18:29:35 | INFO | stdout | Running on local URL: http://0.0.0.0:7860 2024-10-19 18:29:35 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2134: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 18:29:35 | ERROR | stderr | warnings.warn( 2024-10-19 18:29:35 | INFO | stdout | 2024-10-19 18:29:35 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 18:29:35 | INFO | stdout | IMPORTANT: You are using gradio version 3.50.1, however version 4.44.1 is available, please upgrade. 2024-10-19 18:29:35 | INFO | stdout | -------- 2024-10-19 18:29:36 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/dropdown.py:176: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Dropdown(...)` instead of `return gr.Dropdown.update(...)`. 2024-10-19 18:29:36 | ERROR | stderr | warnings.warn( 2024-10-19 18:29:36 | INFO | stdout | state Conversation(system='A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.', roles=('user', 'model'), messages=[], offset=0, sep_style=, sep='', sep2='', version='gemma', skip_next=False) 2024-10-19 18:29:36 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:161: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Chatbot(...)` instead of `return gr.Chatbot.update(...)`. 2024-10-19 18:29:36 | ERROR | stderr | warnings.warn( 2024-10-19 18:29:36 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/textbox.py:163: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Textbox(...)` instead of `return gr.Textbox.update(...)`. 2024-10-19 18:29:36 | ERROR | stderr | warnings.warn( 2024-10-19 18:29:36 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/button.py:89: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Button(...)` instead of `return gr.Button.update(...)`. 2024-10-19 18:29:36 | ERROR | stderr | warnings.warn( 2024-10-19 18:29:52 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction 2024-10-19 18:29:52 | ERROR | stderr | output = await route_utils.call_process_api( 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api 2024-10-19 18:29:52 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1548, in process_api 2024-10-19 18:29:52 | ERROR | stderr | inputs = self.preprocess_data(fn_index, inputs, state) 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1329, in preprocess_data 2024-10-19 18:29:52 | ERROR | stderr | processed_input.append(block.preprocess(inputs[i])) 2024-10-19 18:29:52 | ERROR | stderr | File "/home/user/app/app.py", line 557, in preprocess 2024-10-19 18:29:52 | ERROR | stderr | return super().preprocess(x) 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/components/image.py", line 253, in preprocess 2024-10-19 18:29:52 | ERROR | stderr | assert isinstance(x, dict) 2024-10-19 18:29:52 | ERROR | stderr | AssertionError 2024-10-19 18:29:52 | INFO | stdout | state messages: [] 2024-10-19 18:29:52 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': 'List of 0 images: []'} 2024-10-19 18:29:52 | INFO | stdout | Input Prompt: A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions. 2024-10-19 18:29:52 | INFO | stdout | all_image_hash [] 2024-10-19 18:29:52 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 407, in call_prediction 2024-10-19 18:29:52 | ERROR | stderr | output = await route_utils.call_process_api( 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api 2024-10-19 18:29:52 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api 2024-10-19 18:29:52 | ERROR | stderr | result = await self.call_function( 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1199, in call_function 2024-10-19 18:29:52 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 519, in async_iteration 2024-10-19 18:29:52 | ERROR | stderr | return await iterator.__anext__() 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 512, in __anext__ 2024-10-19 18:29:52 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:29:52 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:29:52 | ERROR | stderr | return await future 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:29:52 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 495, in run_sync_iterator_async 2024-10-19 18:29:52 | ERROR | stderr | return next(iterator) 2024-10-19 18:29:52 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 649, in gen_wrapper 2024-10-19 18:29:52 | ERROR | stderr | yield from f(*args, **kwargs) 2024-10-19 18:29:52 | ERROR | stderr | File "/home/user/app/app.py", line 451, in http_bot 2024-10-19 18:29:52 | ERROR | stderr | state.messages[-1][-1] = "▌" 2024-10-19 18:29:52 | ERROR | stderr | IndexError: list index out of range 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:41 | ERROR | stderr | ERROR: Exception in ASGI application 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 335, in main 2024-10-19 18:30:41 | ERROR | stderr | ) -> App: 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 208, in TemplateResponse 2024-10-19 18:30:41 | ERROR | stderr | template = self.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/templating.py", line 131, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self.env.get_template(name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 1013, in get_template 2024-10-19 18:30:41 | ERROR | stderr | return self._load_template(name, globals) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/environment.py", line 972, in _load_template 2024-10-19 18:30:41 | ERROR | stderr | template = self.loader.load(self, name, self.make_globals(globals)) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 126, in load 2024-10-19 18:30:41 | ERROR | stderr | source, filename, uptodate = self.get_source(environment, name) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/jinja2/loaders.py", line 207, in get_source 2024-10-19 18:30:41 | ERROR | stderr | raise TemplateNotFound(template) 2024-10-19 18:30:41 | ERROR | stderr | jinja2.exceptions.TemplateNotFound: frontend/index.html 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | The above exception was the direct cause of the following exception: 2024-10-19 18:30:41 | ERROR | stderr | 2024-10-19 18:30:41 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi 2024-10-19 18:30:41 | ERROR | stderr | result = await app( # type: ignore[func-returns-value] 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | return await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await super().__call__(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, _send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 85, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__ 2024-10-19 18:30:41 | ERROR | stderr | await self.middleware_stack(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 735, in app 2024-10-19 18:30:41 | ERROR | stderr | await route.handle(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle 2024-10-19 18:30:41 | ERROR | stderr | await self.app(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 76, in app 2024-10-19 18:30:41 | ERROR | stderr | await wrap_app_handling_exceptions(app, request)(scope, receive, send) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | raise exc 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app 2024-10-19 18:30:41 | ERROR | stderr | await app(scope, receive, sender) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 73, in app 2024-10-19 18:30:41 | ERROR | stderr | response = await f(request) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 301, in app 2024-10-19 18:30:41 | ERROR | stderr | raw_response = await run_endpoint_function( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 214, in run_endpoint_function 2024-10-19 18:30:41 | ERROR | stderr | return await run_in_threadpool(dependant.call, **values) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool 2024-10-19 18:30:41 | ERROR | stderr | return await anyio.to_thread.run_sync(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:30:41 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:30:41 | ERROR | stderr | return await future 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:30:41 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:30:41 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 346, in main 2024-10-19 18:30:41 | ERROR | stderr | ValueError: Did you install Gradio from source files? You need to build the frontend by running /scripts/build_frontend.sh 2024-10-19 18:30:54 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:30:54 | ERROR | stderr | File "/home/user/app/app.py", line 44, in 2024-10-19 18:30:54 | ERROR | stderr | no_change_btn = gr.Button.update() 2024-10-19 18:30:54 | ERROR | stderr | AttributeError: type object 'Button' has no attribute 'update' 2024-10-19 18:33:31 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:33:31 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:33:31 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:33:32 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:33:32 | ERROR | stderr | File "/home/user/app/app.py", line 789, in 2024-10-19 18:33:32 | ERROR | stderr | demo = build_demo(args.embed) 2024-10-19 18:33:32 | ERROR | stderr | File "/home/user/app/app.py", line 665, in build_demo 2024-10-19 18:33:32 | ERROR | stderr | sketch_pad = ImageMask(label="Image & Sketch", type="pil", elem_id="img2text") 2024-10-19 18:33:32 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 179, in wrapper 2024-10-19 18:33:32 | ERROR | stderr | return fn(self, **kwargs) 2024-10-19 18:33:32 | ERROR | stderr | File "/home/user/app/app.py", line 554, in __init__ 2024-10-19 18:33:32 | ERROR | stderr | super().__init__(source="upload", tool="sketch", interactive=True, **kwargs) 2024-10-19 18:33:32 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 179, in wrapper 2024-10-19 18:33:32 | ERROR | stderr | return fn(self, **kwargs) 2024-10-19 18:33:32 | ERROR | stderr | TypeError: Image.__init__() got an unexpected keyword argument 'source' 2024-10-19 18:33:32 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 18:38:29 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:38:29 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:38:29 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:38:29 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:38:29 | ERROR | stderr | File "/home/user/app/app.py", line 789, in 2024-10-19 18:38:29 | ERROR | stderr | demo = build_demo(args.embed) 2024-10-19 18:38:29 | ERROR | stderr | File "/home/user/app/app.py", line 665, in build_demo 2024-10-19 18:38:29 | ERROR | stderr | sketch_pad = ImageMask(label="Image & Sketch", type="pil", elem_id="img2text") 2024-10-19 18:38:29 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 179, in wrapper 2024-10-19 18:38:29 | ERROR | stderr | return fn(self, **kwargs) 2024-10-19 18:38:29 | ERROR | stderr | File "/home/user/app/app.py", line 554, in __init__ 2024-10-19 18:38:29 | ERROR | stderr | super().__init__(sources=["upload"], tool="sketch", interactive=True, **kwargs) 2024-10-19 18:38:29 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 179, in wrapper 2024-10-19 18:38:29 | ERROR | stderr | return fn(self, **kwargs) 2024-10-19 18:38:29 | ERROR | stderr | TypeError: Image.__init__() got an unexpected keyword argument 'tool' 2024-10-19 18:38:29 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 18:41:42 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:41:42 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:41:42 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:41:42 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:41:42 | ERROR | stderr | File "/home/user/app/app.py", line 789, in 2024-10-19 18:41:42 | ERROR | stderr | demo = build_demo(args.embed) 2024-10-19 18:41:42 | ERROR | stderr | File "/home/user/app/app.py", line 665, in build_demo 2024-10-19 18:41:42 | ERROR | stderr | sketch_pad = ImageMask(label="Image & Sketch", type="pil", elem_id="img2text") 2024-10-19 18:41:42 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 179, in wrapper 2024-10-19 18:41:42 | ERROR | stderr | return fn(self, **kwargs) 2024-10-19 18:41:42 | ERROR | stderr | File "/home/user/app/app.py", line 554, in __init__ 2024-10-19 18:41:42 | ERROR | stderr | super().__init__(sources=["upload"], tool="sketch", interactive=True, **kwargs) 2024-10-19 18:41:42 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 179, in wrapper 2024-10-19 18:41:42 | ERROR | stderr | return fn(self, **kwargs) 2024-10-19 18:41:42 | ERROR | stderr | TypeError: ImageEditor.__init__() got an unexpected keyword argument 'tool' 2024-10-19 18:41:42 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 18:42:34 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:42:34 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:42:34 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:42:34 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:222: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys. 2024-10-19 18:42:34 | ERROR | stderr | warnings.warn( 2024-10-19 18:42:34 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:42:34 | ERROR | stderr | File "/home/user/app/app.py", line 789, in 2024-10-19 18:42:34 | ERROR | stderr | demo = build_demo(args.embed) 2024-10-19 18:42:34 | ERROR | stderr | File "/home/user/app/app.py", line 702, in build_demo 2024-10-19 18:42:34 | ERROR | stderr | chatbot = gr.Chatbot(elem_id="chatbot", label="FERRET", visible=False).style(height=750) 2024-10-19 18:42:34 | ERROR | stderr | AttributeError: 'Chatbot' object has no attribute 'style'. Did you mean: 'scale'? 2024-10-19 18:42:35 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 18:45:04 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:45:04 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:45:04 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:45:04 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:222: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys. 2024-10-19 18:45:04 | ERROR | stderr | warnings.warn( 2024-10-19 18:45:04 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:45:04 | ERROR | stderr | File "/home/user/app/app.py", line 789, in 2024-10-19 18:45:04 | ERROR | stderr | demo = build_demo(args.embed) 2024-10-19 18:45:04 | ERROR | stderr | File "/home/user/app/app.py", line 702, in build_demo 2024-10-19 18:45:04 | ERROR | stderr | chatbot = gr.Chatbot(elem_id="chatbot", label="FERRET", visible=False).style(height=750) 2024-10-19 18:45:04 | ERROR | stderr | AttributeError: 'Chatbot' object has no attribute 'style'. Did you mean: 'scale'? 2024-10-19 18:45:04 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 18:47:21 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:47:21 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:47:21 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=8, model_list_mode='once', share=False, moderate=False, embed=False, add_region_feature=False) 2024-10-19 18:47:21 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:47:21 | ERROR | stderr | File "/home/user/app/app.py", line 789, in 2024-10-19 18:47:21 | ERROR | stderr | demo = build_demo(args.embed) 2024-10-19 18:47:21 | ERROR | stderr | File "/home/user/app/app.py", line 665, in build_demo 2024-10-19 18:47:21 | ERROR | stderr | sketch_pad = ImageMask(label="Image & Sketch", type="pil", elem_id="img2text") 2024-10-19 18:47:21 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 179, in wrapper 2024-10-19 18:47:21 | ERROR | stderr | return fn(self, **kwargs) 2024-10-19 18:47:21 | ERROR | stderr | File "/home/user/app/app.py", line 554, in __init__ 2024-10-19 18:47:21 | ERROR | stderr | super().__init__(source="upload", tool="sketch", interactive=True, **kwargs) 2024-10-19 18:47:21 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 179, in wrapper 2024-10-19 18:47:21 | ERROR | stderr | return fn(self, **kwargs) 2024-10-19 18:47:21 | ERROR | stderr | TypeError: Image.__init__() got an unexpected keyword argument 'source' 2024-10-19 18:47:21 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 18:58:51 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:58:51 | ERROR | stderr | File "/home/user/app/app.py", line 546, in 2024-10-19 18:58:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 218, in __new__ 2024-10-19 18:58:51 | ERROR | stderr | create_or_modify_pyi(component_class, name, events) 2024-10-19 18:58:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 113, in create_or_modify_pyi 2024-10-19 18:58:51 | ERROR | stderr | raise ValueError("Couldn't find class source code") 2024-10-19 18:58:51 | ERROR | stderr | ValueError: Couldn't find class source code 2024-10-19 18:59:03 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 18:59:03 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 18:59:03 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 18:59:03 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:222: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys. 2024-10-19 18:59:03 | ERROR | stderr | warnings.warn( 2024-10-19 18:59:04 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 18:59:04 | INFO | stdout | Cannot start Node server on any port in the range 7861-7861. 2024-10-19 18:59:04 | INFO | stdout | Please install Node 20 or higher and set the environment variable GRADIO_NODE_PATH to the path of your Node executable. 2024-10-19 18:59:04 | INFO | stdout | You can explicitly specify a port by setting the environment variable GRADIO_NODE_PORT. 2024-10-19 18:59:04 | INFO | stdout | * Running on local URL: http://0.0.0.0:7860, with SSR ⚡ 2024-10-19 18:59:04 | INFO | httpx | HTTP Request: GET http://localhost:7860/gradio_api/startup-events "HTTP/1.1 200 OK" 2024-10-19 18:59:04 | INFO | httpx | HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK" 2024-10-19 18:59:04 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2595: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 18:59:04 | ERROR | stderr | warnings.warn( 2024-10-19 18:59:04 | INFO | stdout | 2024-10-19 18:59:04 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 18:59:19 | INFO | stdout | conv mode to gemma 2024-10-19 18:59:19 | INFO | stdout | Input Image Size:(400, 586) 2024-10-19 18:59:19 | INFO | stdout | Input Image Size:(400, 586) 2024-10-19 18:59:19 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.user\n\ndesrcibe the text\nmodel\n', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': "List of 1 images: ['9c4c9c437ec882a11cd6ed69ca2e5bd9']"} 2024-10-19 18:59:19 | INFO | stdout | Input Image Size:(400, 586) 2024-10-19 18:59:19 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 18:59:19 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 703, in process_events 2024-10-19 18:59:19 | ERROR | stderr | response = await route_utils.call_process_api( 2024-10-19 18:59:19 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api 2024-10-19 18:59:19 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 18:59:19 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api 2024-10-19 18:59:19 | ERROR | stderr | result = await self.call_function( 2024-10-19 18:59:19 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1579, in call_function 2024-10-19 18:59:19 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 18:59:19 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 691, in async_iteration 2024-10-19 18:59:19 | ERROR | stderr | return await anext(iterator) 2024-10-19 18:59:19 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 685, in __anext__ 2024-10-19 18:59:19 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 18:59:19 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 18:59:19 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 18:59:19 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 18:59:19 | ERROR | stderr | return await future 2024-10-19 18:59:19 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 18:59:19 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 18:59:19 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async 2024-10-19 18:59:19 | ERROR | stderr | return next(iterator) 2024-10-19 18:59:19 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 829, in gen_wrapper 2024-10-19 18:59:19 | ERROR | stderr | response = next(iterator) 2024-10-19 18:59:19 | ERROR | stderr | File "/home/user/app/app.py", line 252, in http_bot 2024-10-19 18:59:19 | ERROR | stderr | results, extracted_texts = inference_and_run( 2024-10-19 18:59:19 | ERROR | stderr | TypeError: inference_and_run() got an unexpected keyword argument 'temperature' 2024-10-19 19:02:41 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 19:02:41 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 19:02:41 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 19:02:42 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:222: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys. 2024-10-19 19:02:42 | ERROR | stderr | warnings.warn( 2024-10-19 19:02:42 | INFO | stdout | Cannot start Node server on any port in the range 7861-7861. 2024-10-19 19:02:42 | INFO | stdout | Please install Node 20 or higher and set the environment variable GRADIO_NODE_PATH to the path of your Node executable. 2024-10-19 19:02:42 | INFO | stdout | You can explicitly specify a port by setting the environment variable GRADIO_NODE_PORT. 2024-10-19 19:02:42 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 19:02:42 | INFO | stdout | * Running on local URL: http://0.0.0.0:7860, with SSR ⚡ 2024-10-19 19:02:42 | INFO | httpx | HTTP Request: GET http://localhost:7860/gradio_api/startup-events "HTTP/1.1 200 OK" 2024-10-19 19:02:42 | INFO | httpx | HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK" 2024-10-19 19:02:42 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2595: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 19:02:42 | ERROR | stderr | warnings.warn( 2024-10-19 19:02:42 | INFO | stdout | 2024-10-19 19:02:42 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 19:02:51 | INFO | stdout | conv mode to gemma 2024-10-19 19:02:51 | INFO | stdout | Input Image Size:(400, 668) 2024-10-19 19:02:51 | INFO | stdout | Input Image Size:(400, 668) 2024-10-19 19:02:51 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.user\n\ndescribe the image\nmodel\n', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': "List of 1 images: ['f5fd9bd8b1445ded1d843253a97af861']"} 2024-10-19 19:02:51 | INFO | stdout | Input Image Size:(400, 668) 2024-10-19 19:02:51 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 703, in process_events 2024-10-19 19:02:51 | ERROR | stderr | response = await route_utils.call_process_api( 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api 2024-10-19 19:02:51 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api 2024-10-19 19:02:51 | ERROR | stderr | result = await self.call_function( 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1579, in call_function 2024-10-19 19:02:51 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 691, in async_iteration 2024-10-19 19:02:51 | ERROR | stderr | return await anext(iterator) 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 685, in __anext__ 2024-10-19 19:02:51 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 19:02:51 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 19:02:51 | ERROR | stderr | return await future 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 19:02:51 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async 2024-10-19 19:02:51 | ERROR | stderr | return next(iterator) 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 829, in gen_wrapper 2024-10-19 19:02:51 | ERROR | stderr | response = next(iterator) 2024-10-19 19:02:51 | ERROR | stderr | File "/home/user/app/app.py", line 252, in http_bot 2024-10-19 19:02:51 | ERROR | stderr | results, extracted_texts = inference_and_run( 2024-10-19 19:02:51 | ERROR | stderr | File "/home/user/app/inference.py", line 49, in inference_and_run 2024-10-19 19:02:51 | ERROR | stderr | "image_h": Image.open(image_path).height, 2024-10-19 19:02:51 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/PIL/Image.py", line 3431, in open 2024-10-19 19:02:51 | ERROR | stderr | fp = builtins.open(filename, "rb") 2024-10-19 19:02:51 | ERROR | stderr | FileNotFoundError: [Errno 2] No such file or directory: '/home/user/app/f5fd9bd8b1445ded1d843253a97af861' 2024-10-19 20:49:58 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 20:49:58 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 20:49:58 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 20:49:58 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:222: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys. 2024-10-19 20:49:58 | ERROR | stderr | warnings.warn( 2024-10-19 20:49:58 | INFO | stdout | Cannot start Node server on any port in the range 7861-7861. 2024-10-19 20:49:58 | INFO | stdout | Please install Node 20 or higher and set the environment variable GRADIO_NODE_PATH to the path of your Node executable. 2024-10-19 20:49:58 | INFO | stdout | You can explicitly specify a port by setting the environment variable GRADIO_NODE_PORT. 2024-10-19 20:49:58 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 20:49:58 | INFO | stdout | * Running on local URL: http://0.0.0.0:7860, with SSR ⚡ 2024-10-19 20:49:58 | INFO | httpx | HTTP Request: GET http://localhost:7860/gradio_api/startup-events "HTTP/1.1 200 OK" 2024-10-19 20:49:58 | INFO | httpx | HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK" 2024-10-19 20:49:58 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2595: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 20:49:58 | ERROR | stderr | warnings.warn( 2024-10-19 20:49:58 | INFO | stdout | 2024-10-19 20:49:58 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 20:50:36 | INFO | stdout | conv mode to gemma 2024-10-19 20:50:36 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:50:36 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:50:36 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.user\n\nexplain the image\nmodel\n', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': "List of 1 images: ['8b23f327b90b6211049acd36e3f99975']"} 2024-10-19 20:50:36 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:50:36 | INFO | stdout | eval.json file created successfully. 2024-10-19 20:50:36 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 703, in process_events 2024-10-19 20:50:36 | ERROR | stderr | response = await route_utils.call_process_api( 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api 2024-10-19 20:50:36 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api 2024-10-19 20:50:36 | ERROR | stderr | result = await self.call_function( 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1579, in call_function 2024-10-19 20:50:36 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 691, in async_iteration 2024-10-19 20:50:36 | ERROR | stderr | return await anext(iterator) 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 685, in __anext__ 2024-10-19 20:50:36 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 20:50:36 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 20:50:36 | ERROR | stderr | return await future 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 20:50:36 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async 2024-10-19 20:50:36 | ERROR | stderr | return next(iterator) 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 829, in gen_wrapper 2024-10-19 20:50:36 | ERROR | stderr | response = next(iterator) 2024-10-19 20:50:36 | ERROR | stderr | File "/home/user/app/app.py", line 252, in http_bot 2024-10-19 20:50:36 | ERROR | stderr | results, extracted_texts = inference_and_run( 2024-10-19 20:50:36 | ERROR | stderr | File "/home/user/app/inference.py", line 79, in inference_and_run 2024-10-19 20:50:36 | ERROR | stderr | result = subprocess.run(cmd, check=True, capture_output=True, text=True) 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/subprocess.py", line 503, in run 2024-10-19 20:50:36 | ERROR | stderr | with Popen(*popenargs, **kwargs) as process: 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/subprocess.py", line 971, in __init__ 2024-10-19 20:50:36 | ERROR | stderr | self._execute_child(args, executable, preexec_fn, close_fds, 2024-10-19 20:50:36 | ERROR | stderr | File "/usr/local/lib/python3.10/subprocess.py", line 1796, in _execute_child 2024-10-19 20:50:36 | ERROR | stderr | self.pid = _posixsubprocess.fork_exec( 2024-10-19 20:50:36 | ERROR | stderr | TypeError: expected str, bytes or os.PathLike object, not float 2024-10-19 20:53:53 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 20:53:53 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 20:53:53 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 20:53:53 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:222: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys. 2024-10-19 20:53:53 | ERROR | stderr | warnings.warn( 2024-10-19 20:53:53 | INFO | stdout | Cannot start Node server on any port in the range 7861-7861. 2024-10-19 20:53:53 | INFO | stdout | Please install Node 20 or higher and set the environment variable GRADIO_NODE_PATH to the path of your Node executable. 2024-10-19 20:53:53 | INFO | stdout | You can explicitly specify a port by setting the environment variable GRADIO_NODE_PORT. 2024-10-19 20:53:53 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 20:53:53 | INFO | stdout | * Running on local URL: http://0.0.0.0:7860, with SSR ⚡ 2024-10-19 20:53:53 | INFO | httpx | HTTP Request: GET http://localhost:7860/gradio_api/startup-events "HTTP/1.1 200 OK" 2024-10-19 20:53:53 | INFO | httpx | HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK" 2024-10-19 20:53:53 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2595: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 20:53:53 | ERROR | stderr | warnings.warn( 2024-10-19 20:53:53 | INFO | stdout | 2024-10-19 20:53:53 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 20:54:04 | INFO | stdout | conv mode to gemma 2024-10-19 20:54:04 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:54:04 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:54:04 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.user\n\nexplain this\nmodel\n', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': "List of 1 images: ['8b23f327b90b6211049acd36e3f99975']"} 2024-10-19 20:54:04 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:54:04 | INFO | stdout | eval.json file created successfully. 2024-10-19 20:54:04 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 703, in process_events 2024-10-19 20:54:04 | ERROR | stderr | response = await route_utils.call_process_api( 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api 2024-10-19 20:54:04 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api 2024-10-19 20:54:04 | ERROR | stderr | result = await self.call_function( 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1579, in call_function 2024-10-19 20:54:04 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 691, in async_iteration 2024-10-19 20:54:04 | ERROR | stderr | return await anext(iterator) 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 685, in __anext__ 2024-10-19 20:54:04 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 20:54:04 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 20:54:04 | ERROR | stderr | return await future 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 20:54:04 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async 2024-10-19 20:54:04 | ERROR | stderr | return next(iterator) 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 829, in gen_wrapper 2024-10-19 20:54:04 | ERROR | stderr | response = next(iterator) 2024-10-19 20:54:04 | ERROR | stderr | File "/home/user/app/app.py", line 252, in http_bot 2024-10-19 20:54:04 | ERROR | stderr | results, extracted_texts = inference_and_run( 2024-10-19 20:54:04 | ERROR | stderr | File "/home/user/app/inference.py", line 79, in inference_and_run 2024-10-19 20:54:04 | ERROR | stderr | result = subprocess.run(cmd, check=True, capture_output=True, text=True) 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/subprocess.py", line 503, in run 2024-10-19 20:54:04 | ERROR | stderr | with Popen(*popenargs, **kwargs) as process: 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/subprocess.py", line 971, in __init__ 2024-10-19 20:54:04 | ERROR | stderr | self._execute_child(args, executable, preexec_fn, close_fds, 2024-10-19 20:54:04 | ERROR | stderr | File "/usr/local/lib/python3.10/subprocess.py", line 1796, in _execute_child 2024-10-19 20:54:04 | ERROR | stderr | self.pid = _posixsubprocess.fork_exec( 2024-10-19 20:54:04 | ERROR | stderr | TypeError: expected str, bytes or os.PathLike object, not float 2024-10-19 20:54:32 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 20:54:32 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 20:54:32 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 20:54:33 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:222: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys. 2024-10-19 20:54:33 | ERROR | stderr | warnings.warn( 2024-10-19 20:54:33 | INFO | stdout | Cannot start Node server on any port in the range 7861-7861. 2024-10-19 20:54:33 | INFO | stdout | Please install Node 20 or higher and set the environment variable GRADIO_NODE_PATH to the path of your Node executable. 2024-10-19 20:54:33 | INFO | stdout | You can explicitly specify a port by setting the environment variable GRADIO_NODE_PORT. 2024-10-19 20:54:33 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 20:54:33 | INFO | stdout | * Running on local URL: http://0.0.0.0:7860, with SSR ⚡ 2024-10-19 20:54:33 | INFO | httpx | HTTP Request: GET http://localhost:7860/gradio_api/startup-events "HTTP/1.1 200 OK" 2024-10-19 20:54:33 | INFO | httpx | HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK" 2024-10-19 20:54:33 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2595: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 20:54:33 | ERROR | stderr | warnings.warn( 2024-10-19 20:54:33 | INFO | stdout | 2024-10-19 20:54:33 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 20:54:40 | INFO | stdout | conv mode to gemma 2024-10-19 20:54:40 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:54:40 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:54:40 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.user\n\nexplain this\nmodel\n', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': "List of 1 images: ['8b23f327b90b6211049acd36e3f99975']"} 2024-10-19 20:54:40 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:54:40 | INFO | stdout | eval.json file created successfully. 2024-10-19 20:54:40 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 703, in process_events 2024-10-19 20:54:40 | ERROR | stderr | response = await route_utils.call_process_api( 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api 2024-10-19 20:54:40 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api 2024-10-19 20:54:40 | ERROR | stderr | result = await self.call_function( 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1579, in call_function 2024-10-19 20:54:40 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 691, in async_iteration 2024-10-19 20:54:40 | ERROR | stderr | return await anext(iterator) 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 685, in __anext__ 2024-10-19 20:54:40 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 20:54:40 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 20:54:40 | ERROR | stderr | return await future 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 20:54:40 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async 2024-10-19 20:54:40 | ERROR | stderr | return next(iterator) 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 829, in gen_wrapper 2024-10-19 20:54:40 | ERROR | stderr | response = next(iterator) 2024-10-19 20:54:40 | ERROR | stderr | File "/home/user/app/app.py", line 252, in http_bot 2024-10-19 20:54:40 | ERROR | stderr | results, extracted_texts = inference_and_run( 2024-10-19 20:54:40 | ERROR | stderr | File "/home/user/app/inference.py", line 79, in inference_and_run 2024-10-19 20:54:40 | ERROR | stderr | result = subprocess.run(cmd, check=True, capture_output=True, text=True) 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/subprocess.py", line 503, in run 2024-10-19 20:54:40 | ERROR | stderr | with Popen(*popenargs, **kwargs) as process: 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/subprocess.py", line 971, in __init__ 2024-10-19 20:54:40 | ERROR | stderr | self._execute_child(args, executable, preexec_fn, close_fds, 2024-10-19 20:54:40 | ERROR | stderr | File "/usr/local/lib/python3.10/subprocess.py", line 1796, in _execute_child 2024-10-19 20:54:40 | ERROR | stderr | self.pid = _posixsubprocess.fork_exec( 2024-10-19 20:54:40 | ERROR | stderr | TypeError: expected str, bytes or os.PathLike object, not float 2024-10-19 20:56:02 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 20:56:02 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 20:56:02 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 20:56:02 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:222: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys. 2024-10-19 20:56:02 | ERROR | stderr | warnings.warn( 2024-10-19 20:56:02 | INFO | stdout | Cannot start Node server on any port in the range 7861-7861. 2024-10-19 20:56:02 | INFO | stdout | Please install Node 20 or higher and set the environment variable GRADIO_NODE_PATH to the path of your Node executable. 2024-10-19 20:56:02 | INFO | stdout | You can explicitly specify a port by setting the environment variable GRADIO_NODE_PORT. 2024-10-19 20:56:02 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 20:56:02 | INFO | stdout | * Running on local URL: http://0.0.0.0:7860, with SSR ⚡ 2024-10-19 20:56:02 | INFO | httpx | HTTP Request: GET http://localhost:7860/gradio_api/startup-events "HTTP/1.1 200 OK" 2024-10-19 20:56:02 | INFO | httpx | HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK" 2024-10-19 20:56:02 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2595: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 20:56:02 | ERROR | stderr | warnings.warn( 2024-10-19 20:56:02 | INFO | stdout | 2024-10-19 20:56:02 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 20:56:08 | INFO | stdout | conv mode to gemma 2024-10-19 20:56:08 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:56:09 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:56:09 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.user\n\nexplain this\nmodel\n', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': "List of 1 images: ['8b23f327b90b6211049acd36e3f99975']"} 2024-10-19 20:56:09 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 20:56:09 | INFO | stdout | eval.json file created successfully. 2024-10-19 20:56:24 | INFO | stdout | Error occurred during inference: 2024-10-19 20:56:24 | INFO | stdout | Command '['python', '-m', 'model_UI', '--model_path', 'jadechoghari/Ferret-UI-Gemma2b', '--data_path', 'eval.json', '--image_path', '.', '--answers_file', 'eval_output.jsonl', '--num_beam', '1', '--temperature', '0.2', '--top_p', '0.7', '--max_new_tokens', '512', '--conv_mode', 'ferret_gemma_instruct']' returned non-zero exit status 1. 2024-10-19 20:56:24 | INFO | stdout | Subprocess output: 2024-10-19 20:56:24 | INFO | stdout | 2024-10-19 20:56:24 | INFO | gradio_web_server | This is the respone None 2024-10-19 20:56:24 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 20:56:24 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 703, in process_events 2024-10-19 20:56:24 | ERROR | stderr | response = await route_utils.call_process_api( 2024-10-19 20:56:24 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api 2024-10-19 20:56:24 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 20:56:24 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api 2024-10-19 20:56:24 | ERROR | stderr | result = await self.call_function( 2024-10-19 20:56:24 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1579, in call_function 2024-10-19 20:56:24 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 20:56:24 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 691, in async_iteration 2024-10-19 20:56:24 | ERROR | stderr | return await anext(iterator) 2024-10-19 20:56:24 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 685, in __anext__ 2024-10-19 20:56:24 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 20:56:24 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 20:56:24 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 20:56:24 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 20:56:24 | ERROR | stderr | return await future 2024-10-19 20:56:24 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 20:56:24 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 20:56:24 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async 2024-10-19 20:56:24 | ERROR | stderr | return next(iterator) 2024-10-19 20:56:24 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 829, in gen_wrapper 2024-10-19 20:56:24 | ERROR | stderr | response = next(iterator) 2024-10-19 20:56:24 | ERROR | stderr | File "/home/user/app/app.py", line 264, in http_bot 2024-10-19 20:56:24 | ERROR | stderr | for chunk in response.iter_lines(decode_unicode=False, delimiter=b"\0"): 2024-10-19 20:56:24 | ERROR | stderr | AttributeError: 'NoneType' object has no attribute 'iter_lines' 2024-10-19 22:26:55 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 22:26:55 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 22:26:55 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 22:26:55 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:222: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys. 2024-10-19 22:26:55 | ERROR | stderr | warnings.warn( 2024-10-19 22:26:56 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 22:26:56 | INFO | stdout | Cannot start Node server on any port in the range 7861-7861. 2024-10-19 22:26:56 | INFO | stdout | Please install Node 20 or higher and set the environment variable GRADIO_NODE_PATH to the path of your Node executable. 2024-10-19 22:26:56 | INFO | stdout | You can explicitly specify a port by setting the environment variable GRADIO_NODE_PORT. 2024-10-19 22:26:56 | INFO | stdout | * Running on local URL: http://0.0.0.0:7860, with SSR ⚡ 2024-10-19 22:26:56 | INFO | httpx | HTTP Request: GET http://localhost:7860/gradio_api/startup-events "HTTP/1.1 200 OK" 2024-10-19 22:26:56 | INFO | httpx | HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK" 2024-10-19 22:26:56 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2595: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 22:26:56 | ERROR | stderr | warnings.warn( 2024-10-19 22:26:56 | INFO | stdout | 2024-10-19 22:26:56 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 22:27:43 | INFO | stdout | conv mode to gemma 2024-10-19 22:27:43 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:27:43 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:27:43 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.user\n\ndescribe the image in detail\nmodel\n', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': "List of 1 images: ['8b23f327b90b6211049acd36e3f99975']"} 2024-10-19 22:27:43 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:27:43 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 703, in process_events 2024-10-19 22:27:43 | ERROR | stderr | response = await route_utils.call_process_api( 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api 2024-10-19 22:27:43 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api 2024-10-19 22:27:43 | ERROR | stderr | result = await self.call_function( 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1579, in call_function 2024-10-19 22:27:43 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 691, in async_iteration 2024-10-19 22:27:43 | ERROR | stderr | return await anext(iterator) 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 685, in __anext__ 2024-10-19 22:27:43 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 22:27:43 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 22:27:43 | ERROR | stderr | return await future 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 22:27:43 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async 2024-10-19 22:27:43 | ERROR | stderr | return next(iterator) 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 829, in gen_wrapper 2024-10-19 22:27:43 | ERROR | stderr | response = next(iterator) 2024-10-19 22:27:43 | ERROR | stderr | File "/home/user/app/app.py", line 254, in http_bot 2024-10-19 22:27:43 | ERROR | stderr | results, extracted_texts = inference_and_run( 2024-10-19 22:27:43 | ERROR | stderr | File "/home/user/app/inference.py", line 49, in inference_and_run 2024-10-19 22:27:43 | ERROR | stderr | "image_h": Image.open(image_path).height, 2024-10-19 22:27:43 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/PIL/Image.py", line 3431, in open 2024-10-19 22:27:43 | ERROR | stderr | fp = builtins.open(filename, "rb") 2024-10-19 22:27:43 | ERROR | stderr | IsADirectoryError: [Errno 21] Is a directory: '/home/user/app/serve_images/2024-10-19' 2024-10-19 22:28:31 | INFO | stdout | conv mode to gemma 2024-10-19 22:28:31 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:28:31 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:28:31 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.user\n\nexplian this image in details\nmodel\n', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': "List of 1 images: ['8b23f327b90b6211049acd36e3f99975']"} 2024-10-19 22:28:31 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:28:31 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 703, in process_events 2024-10-19 22:28:31 | ERROR | stderr | response = await route_utils.call_process_api( 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api 2024-10-19 22:28:31 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api 2024-10-19 22:28:31 | ERROR | stderr | result = await self.call_function( 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1579, in call_function 2024-10-19 22:28:31 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 691, in async_iteration 2024-10-19 22:28:31 | ERROR | stderr | return await anext(iterator) 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 685, in __anext__ 2024-10-19 22:28:31 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 22:28:31 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 22:28:31 | ERROR | stderr | return await future 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 22:28:31 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async 2024-10-19 22:28:31 | ERROR | stderr | return next(iterator) 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 829, in gen_wrapper 2024-10-19 22:28:31 | ERROR | stderr | response = next(iterator) 2024-10-19 22:28:31 | ERROR | stderr | File "/home/user/app/app.py", line 254, in http_bot 2024-10-19 22:28:31 | ERROR | stderr | results, extracted_texts = inference_and_run( 2024-10-19 22:28:31 | ERROR | stderr | File "/home/user/app/inference.py", line 49, in inference_and_run 2024-10-19 22:28:31 | ERROR | stderr | "image_h": Image.open(image_path).height, 2024-10-19 22:28:31 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/PIL/Image.py", line 3431, in open 2024-10-19 22:28:31 | ERROR | stderr | fp = builtins.open(filename, "rb") 2024-10-19 22:28:31 | ERROR | stderr | IsADirectoryError: [Errno 21] Is a directory: '/home/user/app/serve_images/2024-10-19' 2024-10-19 22:30:10 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 22:30:10 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 22:30:10 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 22:30:10 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:222: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys. 2024-10-19 22:30:10 | ERROR | stderr | warnings.warn( 2024-10-19 22:30:10 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 22:30:10 | INFO | stdout | Cannot start Node server on any port in the range 7861-7861. 2024-10-19 22:30:10 | INFO | stdout | Please install Node 20 or higher and set the environment variable GRADIO_NODE_PATH to the path of your Node executable. 2024-10-19 22:30:10 | INFO | stdout | You can explicitly specify a port by setting the environment variable GRADIO_NODE_PORT. 2024-10-19 22:30:10 | INFO | stdout | * Running on local URL: http://0.0.0.0:7860, with SSR ⚡ 2024-10-19 22:30:10 | INFO | httpx | HTTP Request: GET http://localhost:7860/gradio_api/startup-events "HTTP/1.1 200 OK" 2024-10-19 22:30:10 | INFO | httpx | HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK" 2024-10-19 22:30:10 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2595: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 22:30:10 | ERROR | stderr | warnings.warn( 2024-10-19 22:30:10 | INFO | stdout | 2024-10-19 22:30:10 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 22:31:54 | INFO | gradio_web_server | args: Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 22:31:54 | INFO | gradio_web_server | Models: ['jadechoghari/Ferret-UI-Gemma2b'] 2024-10-19 22:31:54 | INFO | gradio_web_server | Namespace(host='0.0.0.0', port=None, controller_url='http://localhost:21001', concurrency_count=16, model_list_mode='once', share=False, moderate=False, embed=False) 2024-10-19 22:31:54 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:222: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style 'role' and 'content' keys. 2024-10-19 22:31:54 | ERROR | stderr | warnings.warn( 2024-10-19 22:31:55 | INFO | stdout | Cannot start Node server on any port in the range 7861-7861. 2024-10-19 22:31:55 | INFO | stdout | Please install Node 20 or higher and set the environment variable GRADIO_NODE_PATH to the path of your Node executable. 2024-10-19 22:31:55 | INFO | stdout | You can explicitly specify a port by setting the environment variable GRADIO_NODE_PORT. 2024-10-19 22:31:55 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK" 2024-10-19 22:31:55 | INFO | stdout | * Running on local URL: http://0.0.0.0:7860, with SSR ⚡ 2024-10-19 22:31:55 | INFO | httpx | HTTP Request: GET http://localhost:7860/gradio_api/startup-events "HTTP/1.1 200 OK" 2024-10-19 22:31:55 | INFO | httpx | HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK" 2024-10-19 22:31:55 | ERROR | stderr | /usr/local/lib/python3.10/site-packages/gradio/blocks.py:2595: UserWarning: Setting share=True is not supported on Hugging Face Spaces 2024-10-19 22:31:55 | ERROR | stderr | warnings.warn( 2024-10-19 22:31:55 | INFO | stdout | 2024-10-19 22:31:55 | INFO | stdout | To create a public link, set `share=True` in `launch()`. 2024-10-19 22:32:05 | INFO | stdout | conv mode to gemma 2024-10-19 22:32:05 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:32:05 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:32:05 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.user\n\nexplain this image in details\nmodel\n', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': "List of 1 images: ['8b23f327b90b6211049acd36e3f99975']"} 2024-10-19 22:32:05 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:32:05 | INFO | stdout | eval.json file created successfully. 2024-10-19 22:32:23 | INFO | stdout | Error occurred during inference: 2024-10-19 22:32:23 | INFO | stdout | Command '['python', '-m', 'model_UI', '--model_path', 'jadechoghari/Ferret-UI-Gemma2b', '--data_path', 'eval.json', '--image_path', './serve_images/2024-10-19', '--answers_file', 'eval_output.jsonl', '--num_beam', '1', '--temperature', '0.2', '--top_p', '0.7', '--max_new_tokens', '512', '--conv_mode', 'ferret_gemma_instruct']' returned non-zero exit status 1. 2024-10-19 22:32:23 | INFO | stdout | Subprocess output: 2024-10-19 22:32:23 | INFO | stdout | 2024-10-19 22:32:23 | INFO | gradio_web_server | This is the respone None 2024-10-19 22:32:23 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 22:32:23 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 703, in process_events 2024-10-19 22:32:23 | ERROR | stderr | response = await route_utils.call_process_api( 2024-10-19 22:32:23 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api 2024-10-19 22:32:23 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 22:32:23 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api 2024-10-19 22:32:23 | ERROR | stderr | result = await self.call_function( 2024-10-19 22:32:23 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1579, in call_function 2024-10-19 22:32:23 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 22:32:23 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 691, in async_iteration 2024-10-19 22:32:23 | ERROR | stderr | return await anext(iterator) 2024-10-19 22:32:23 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 685, in __anext__ 2024-10-19 22:32:23 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 22:32:23 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 22:32:23 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 22:32:23 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 22:32:23 | ERROR | stderr | return await future 2024-10-19 22:32:23 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 22:32:23 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 22:32:23 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async 2024-10-19 22:32:23 | ERROR | stderr | return next(iterator) 2024-10-19 22:32:23 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 829, in gen_wrapper 2024-10-19 22:32:23 | ERROR | stderr | response = next(iterator) 2024-10-19 22:32:23 | ERROR | stderr | File "/home/user/app/app.py", line 267, in http_bot 2024-10-19 22:32:23 | ERROR | stderr | for chunk in response.iter_lines(decode_unicode=False, delimiter=b"\0"): 2024-10-19 22:32:23 | ERROR | stderr | AttributeError: 'NoneType' object has no attribute 'iter_lines' 2024-10-19 22:36:12 | INFO | stdout | conv mode to gemma 2024-10-19 22:36:12 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:36:12 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:36:12 | INFO | gradio_web_server | ==== request ==== {'model': 'jadechoghari/Ferret-UI-Gemma2b', 'prompt': 'A chat between a human and an AI that understands visuals. In images, [x, y] denotes points: top-left [0, 0], bottom-right [width-1, height-1]. Increasing x moves right; y moves down. Bounding box: [x1, y1, x2, y2]. Image size: 1000x1000. Follow instructions.user\n\ndescribe the image in details\nmodel\n', 'temperature': 0.2, 'top_p': 0.7, 'max_new_tokens': 512, 'stop': '', 'images': "List of 1 images: ['8b23f327b90b6211049acd36e3f99975']"} 2024-10-19 22:36:12 | INFO | stdout | Input Image Size:(400, 433) 2024-10-19 22:36:12 | INFO | stdout | eval.json file created successfully. 2024-10-19 22:36:26 | INFO | stdout | Error occurred during inference: 2024-10-19 22:36:26 | INFO | stdout | Command '['python', '-m', 'model_UI', '--model_path', 'jadechoghari/Ferret-UI-Gemma2b', '--data_path', 'eval.json', '--image_path', './serve_images/2024-10-19', '--answers_file', 'eval_output.jsonl', '--num_beam', '1', '--temperature', '0.2', '--top_p', '0.7', '--max_new_tokens', '512', '--conv_mode', 'ferret_gemma_instruct']' returned non-zero exit status 1. 2024-10-19 22:36:26 | INFO | stdout | Subprocess output: 2024-10-19 22:36:26 | INFO | stdout | 2024-10-19 22:36:26 | INFO | gradio_web_server | This is the respone None 2024-10-19 22:36:26 | ERROR | stderr | Traceback (most recent call last): 2024-10-19 22:36:26 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 703, in process_events 2024-10-19 22:36:26 | ERROR | stderr | response = await route_utils.call_process_api( 2024-10-19 22:36:26 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api 2024-10-19 22:36:26 | ERROR | stderr | output = await app.get_blocks().process_api( 2024-10-19 22:36:26 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 2014, in process_api 2024-10-19 22:36:26 | ERROR | stderr | result = await self.call_function( 2024-10-19 22:36:26 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1579, in call_function 2024-10-19 22:36:26 | ERROR | stderr | prediction = await utils.async_iteration(iterator) 2024-10-19 22:36:26 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 691, in async_iteration 2024-10-19 22:36:26 | ERROR | stderr | return await anext(iterator) 2024-10-19 22:36:26 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 685, in __anext__ 2024-10-19 22:36:26 | ERROR | stderr | return await anyio.to_thread.run_sync( 2024-10-19 22:36:26 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync 2024-10-19 22:36:26 | ERROR | stderr | return await get_async_backend().run_sync_in_worker_thread( 2024-10-19 22:36:26 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2441, in run_sync_in_worker_thread 2024-10-19 22:36:26 | ERROR | stderr | return await future 2024-10-19 22:36:26 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 943, in run 2024-10-19 22:36:26 | ERROR | stderr | result = context.run(func, *args) 2024-10-19 22:36:26 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async 2024-10-19 22:36:26 | ERROR | stderr | return next(iterator) 2024-10-19 22:36:26 | ERROR | stderr | File "/usr/local/lib/python3.10/site-packages/gradio/utils.py", line 829, in gen_wrapper 2024-10-19 22:36:26 | ERROR | stderr | response = next(iterator) 2024-10-19 22:36:26 | ERROR | stderr | File "/home/user/app/app.py", line 267, in http_bot 2024-10-19 22:36:26 | ERROR | stderr | for chunk in response.iter_lines(decode_unicode=False, delimiter=b"\0"): 2024-10-19 22:36:26 | ERROR | stderr | AttributeError: 'NoneType' object has no attribute 'iter_lines'