MuahammadHamza commited on
Commit
6198aa8
·
verified ·
1 Parent(s): a26e25f

Upload 4 files

Browse files
Files changed (1) hide show
  1. streamlit_app.py +8 -1
streamlit_app.py CHANGED
@@ -1,10 +1,17 @@
1
  import os
 
2
  import tempfile
3
 
4
  import streamlit as st
5
  from PIL import Image
6
 
7
- from gradio.app import predict_aml
 
 
 
 
 
 
8
 
9
 
10
  st.set_page_config(
 
1
  import os
2
+ import sys
3
  import tempfile
4
 
5
  import streamlit as st
6
  from PIL import Image
7
 
8
+ # Ensure we can import the local `gradio/app.py` module (model + graph logic).
9
+ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
10
+ GRADIO_DIR = os.path.join(BASE_DIR, "gradio")
11
+ if GRADIO_DIR not in sys.path:
12
+ sys.path.append(GRADIO_DIR)
13
+
14
+ from app import predict_aml # type: ignore
15
 
16
 
17
  st.set_page_config(