Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,19 @@
|
|
1 |
import streamlit as st
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import anthropic, openai, base64, cv2, glob, json, math, os, pytz, random, re, requests, time, zipfile
|
3 |
import plotly.graph_objects as go
|
4 |
import streamlit.components.v1 as components
|
@@ -20,18 +35,6 @@ from streamlit.runtime.scriptrunner import get_script_run_ctx
|
|
20 |
import asyncio
|
21 |
import edge_tts
|
22 |
|
23 |
-
# 🎯 1. Core Configuration & Setup
|
24 |
-
st.set_page_config(
|
25 |
-
page_title="🚲BikeAI🏆 Claude/GPT Research",
|
26 |
-
page_icon="🚲🏆",
|
27 |
-
layout="wide",
|
28 |
-
initial_sidebar_state="auto",
|
29 |
-
menu_items={
|
30 |
-
'Get Help': 'https://huggingface.co/awacke1',
|
31 |
-
'Report a bug': 'https://huggingface.co/spaces/awacke1',
|
32 |
-
'About': "🚲BikeAI🏆 Claude/GPT Research AI"
|
33 |
-
}
|
34 |
-
)
|
35 |
load_dotenv()
|
36 |
|
37 |
# 🔑 2. API Setup & Clients
|
|
|
1 |
import streamlit as st
|
2 |
+
|
3 |
+
# Must be the very first Streamlit command
|
4 |
+
st.set_page_config(
|
5 |
+
page_title="🚲BikeAI🏆 Claude/GPT Research",
|
6 |
+
page_icon="🚲🏆",
|
7 |
+
layout="wide",
|
8 |
+
initial_sidebar_state="auto",
|
9 |
+
menu_items={
|
10 |
+
'Get Help': 'https://huggingface.co/awacke1',
|
11 |
+
'Report a bug': 'https://huggingface.co/spaces/awacke1',
|
12 |
+
'About': "🚲BikeAI🏆 Claude/GPT Research AI"
|
13 |
+
}
|
14 |
+
)
|
15 |
+
|
16 |
+
# Now import everything else
|
17 |
import anthropic, openai, base64, cv2, glob, json, math, os, pytz, random, re, requests, time, zipfile
|
18 |
import plotly.graph_objects as go
|
19 |
import streamlit.components.v1 as components
|
|
|
35 |
import asyncio
|
36 |
import edge_tts
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
load_dotenv()
|
39 |
|
40 |
# 🔑 2. API Setup & Clients
|