yassonee commited on
Commit
81ff8c7
·
verified ·
1 Parent(s): c16e85e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -1,4 +1,12 @@
1
  import streamlit as st
 
 
 
 
 
 
 
 
2
  import base64
3
  from fastapi import FastAPI, Request
4
  from fastapi.middleware.cors import CORSMiddleware
@@ -131,12 +139,6 @@ async def predict(request: Request):
131
 
132
  # Streamlit interface
133
  def streamlit_interface():
134
- st.set_page_config(
135
- page_title="Fracture Detection System",
136
- page_icon="🦴",
137
- layout="wide"
138
- )
139
-
140
  st.title("🦴 Système de Détection de Fractures")
141
 
142
  # File uploader
 
1
  import streamlit as st
2
+
3
+ # Set page config must be the first Streamlit command
4
+ st.set_page_config(
5
+ page_title="Fracture Detection System",
6
+ page_icon="🦴",
7
+ layout="wide"
8
+ )
9
+
10
  import base64
11
  from fastapi import FastAPI, Request
12
  from fastapi.middleware.cors import CORSMiddleware
 
139
 
140
  # Streamlit interface
141
  def streamlit_interface():
 
 
 
 
 
 
142
  st.title("🦴 Système de Détection de Fractures")
143
 
144
  # File uploader