Unable to deploy my app, and having cant open tflite file error

i have deployed my app on streamlit and also fixed the packages.txt error i was getting earlier and have replaced all my local file paths with the raw git links, still i am getting the cant open error

please help me, i. think i am doing some error while fetching the files, but i can find the solution

https://islrv3.streamlit.app/

and this is my github repo link:
https://github.com/pavannn16/ISLRv2

The error i am getting:


────────────────────── Traceback (most recent call last) ───────────────────────

  /home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptru  

  nner/exec_code.py:88 in exec_func_with_error_handling                         

                                                                                

  /home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptru  

  nner/script_runner.py:579 in code_to_exec                                     

                                                                                

  /mount/src/islrv2/v3/app_with_display.py:194 in <module>                      

                                                                                

    191 │   xyz = pd.read_parquet(dummy_parquet_skel_file)                      

    192 │                                                                       

    193 │   # Combine main script and inference code                            

  ❱ 194 │   interpreter = tflite.Interpreter(tflite_model)                      

    195 │   found_signatures = list(interpreter.get_signature_list().keys())    

    196 │   prediction_fn = interpreter.get_signature_runner("serving_default"  

    197 │   train = pd.read_csv(csv_file)                                       

                                                                                

  /home/adminuser/venv/lib/python3.12/site-packages/tensorflow/lite/python/int  

  erpreter.py:473 in __init__                                                   

                                                                                

     470 │     custom_op_registerers_by_func = [                                

     471 │   │     x for x in self._custom_op_registerers if not isinstance(x,  

     472 │     ]                                                                

  ❱  473 │     self._interpreter = _interpreter_wrapper.CreateWrapperFromFile(  

     474 │   │     model_path,                                                  

     475 │   │     op_resolver_id,                                              

     476 │   │     custom_op_registerers_by_name,                               

────────────────────────────────────────────────────────────────────────────────

ValueError: Could not open 

'https://raw.githubusercontent.com/pavannn16/ISLRv2/main/models/asl_model.tflite

'.

2024-10-09 06:46:22.923 503 GET /script-health-check (127.0.0.1) 817.16ms

Trying to deploy your app I got this instead:

NameError: name 'requests' is not defined

Due to your own code trying to use requests without importing it.

That’s weird, because I can no longer find app_with_display.py in your repo.

i have closed that, as i came to know video input in streamlit is not possible right now as i was trying to access the webcam and save that video to process it

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.