Spaces:
Sleeping
Sleeping
acecalisto3
commited on
Commit
•
0762166
1
Parent(s):
e79d680
Update app.py
Browse files
app.py
CHANGED
@@ -275,4 +275,24 @@ def main():
|
|
275 |
preview_button.click(preview_project, outputs=project_output)
|
276 |
|
277 |
if __name__ == "__main__":
|
278 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
preview_button.click(preview_project, outputs=project_output)
|
276 |
|
277 |
if __name__ == "__main__":
|
278 |
+
app_mode = st.sidebar.selectbox("Choose the app mode", ["AI Agent Creator", "Tool Box", "Workspace Chat App"])
|
279 |
+
|
280 |
+
if app_mode == "AI Agent Creator":
|
281 |
+
toolbox()
|
282 |
+
|
283 |
+
elif app_mode == "Tool Box":
|
284 |
+
toolbox()
|
285 |
+
|
286 |
+
elif app_mode == "Workspace Chat App":
|
287 |
+
workspace()
|
288 |
+
|
289 |
+
else:
|
290 |
+
raise ValueError("Invalid app mode selected.")
|
291 |
+
|
292 |
+
# Set up Flask app and run it
|
293 |
+
app = Flask(__name__)
|
294 |
+
app.config["MAX_CONTENT_LENGTH"] = 16 * 1024 * 1024
|
295 |
+
app.config["UPLOADED_IMAGES_DEST"] = UPLOADED_IMAGES_DEST
|
296 |
+
app.config["UPLOADED_STATIC_DEST"] = UPLOADED_STATIC_DEST
|
297 |
+
app.register_blueprint(streamlit_blueprint)
|
298 |
+
app.run(debug=True)
|