m7mdal7aj commited on
Commit
a4d2f44
·
verified ·
1 Parent(s): bd86418

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -137,7 +137,7 @@ def run_inference():
137
  if st.session_state['kbvqa'] is not None and not settings_changed:
138
  st.write("Model already loaded.")
139
  else:
140
- st.text("Loading the model will take no more than a few minutes dpending on the hardware configuration . .")
141
  st.session_state['kbvqa'] = prepare_kbvqa_model(detection_model)
142
  st.session_state['kbvqa'].detection_confidence = confidence_level
143
  st.session_state['model_settings'] = {'detection_model': detection_model, 'confidence_level': confidence_level}
@@ -194,8 +194,9 @@ def main():
194
  run_inference()
195
 
196
  elif selection == "Code":
197
- st.title("Staye Tuned")
198
- st.write("This is a Place Holder until the contents are uploaded.")
 
199
 
200
  elif selection == "More Pages will follow .. ":
201
  st.title("Staye Tuned")
 
137
  if st.session_state['kbvqa'] is not None and not settings_changed:
138
  st.write("Model already loaded.")
139
  else:
140
+ st.text("Loading the model will take no more than a few minutes . .")
141
  st.session_state['kbvqa'] = prepare_kbvqa_model(detection_model)
142
  st.session_state['kbvqa'].detection_confidence = confidence_level
143
  st.session_state['model_settings'] = {'detection_model': detection_model, 'confidence_level': confidence_level}
 
194
  run_inference()
195
 
196
  elif selection == "Code":
197
+ st.title("Code")
198
+ st.markdown("You can view the code for this project on the Hugging Face Space file page.")
199
+ st.markdown("[View Code](https://huggingface.co/spaces/m7mdal7aj/Mohammed_Alhaj_PlayGround/tree/main)", unsafe_allow_html=True)
200
 
201
  elif selection == "More Pages will follow .. ":
202
  st.title("Staye Tuned")