Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,8 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import anthropic
|
| 3 |
import os
|
| 4 |
from pptx import Presentation
|
|
@@ -26,9 +30,6 @@ except Exception as e:
|
|
| 26 |
# Default to older API which is more likely to be compatible
|
| 27 |
client = anthropic.Client(api_key=os.environ.get("ANTHROPIC_API_KEY"))
|
| 28 |
|
| 29 |
-
# Set page config
|
| 30 |
-
st.set_page_config(page_title="AI PowerPoint Creator", layout="wide")
|
| 31 |
-
|
| 32 |
# Anthropic version is now checked during client initialization
|
| 33 |
|
| 34 |
# Initialize session state variables
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
|
| 3 |
+
# Set page config - must be the first Streamlit command
|
| 4 |
+
st.set_page_config(page_title="AI PowerPoint Creator", layout="wide")
|
| 5 |
+
|
| 6 |
import anthropic
|
| 7 |
import os
|
| 8 |
from pptx import Presentation
|
|
|
|
| 30 |
# Default to older API which is more likely to be compatible
|
| 31 |
client = anthropic.Client(api_key=os.environ.get("ANTHROPIC_API_KEY"))
|
| 32 |
|
|
|
|
|
|
|
|
|
|
| 33 |
# Anthropic version is now checked during client initialization
|
| 34 |
|
| 35 |
# Initialize session state variables
|