Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 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):
|