noumanjavaid commited on
Commit
50a46c7
·
verified ·
1 Parent(s): e5a3f85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -9,12 +9,8 @@ st.set_page_config(page_title="AI Image Detector", page_icon="🔍")
9
  st.title("AI Image Detector")
10
  st.write("Upload an image to check if it's AI-generated")
11
 
12
- # Initialize session state for API key
13
- if 'api_key' not in st.session_state:
14
- st.session_state.api_key = ''
15
 
16
- # API key input
17
- api_key = st.text_input("Enter NVIDIA API Key:", value=st.session_state.api_key, type="password")
18
  st.session_state.api_key = api_key
19
 
20
  def process_image(image_bytes, api_key):
 
9
  st.title("AI Image Detector")
10
  st.write("Upload an image to check if it's AI-generated")
11
 
 
 
 
12
 
13
+ api_key = "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"
 
14
  st.session_state.api_key = api_key
15
 
16
  def process_image(image_bytes, api_key):