eaglelandsonce commited on
Commit
19ccac0
1 Parent(s): 4ede07e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -18
app.py CHANGED
@@ -1,23 +1,20 @@
1
- import os
2
  import streamlit as st
3
- from clarifai.client.model import Model
4
 
5
- # Read API key from environment variable
6
- api_key = os.getenv("CodestralPat")
7
 
8
- # Function to get prediction from the model
9
- def get_model_prediction(prompt):
10
- model_url = "https://clarifai.com/mistralai/completion/models/codestral-22b-instruct"
11
- model = Model(url=model_url, pat=api_key)
12
- model_prediction = model.predict_by_bytes(prompt.encode(), input_type="text")
13
- return model_prediction.outputs[0].data.text.raw
14
 
15
- # Streamlit interface
16
- st.title("Codestral with Clarifai")
 
 
 
 
 
 
 
17
 
18
- prompt = st.text_input("Enter your prompt:", "What's the future of AI?")
19
-
20
- if st.button("Get Prediction"):
21
- prediction = get_model_prediction(prompt)
22
- st.write("Model Prediction:")
23
- st.write(prediction)
 
 
1
  import streamlit as st
 
2
 
3
+ # Set the title of the Streamlit app
4
+ st.title("CodeBlast Dream Catcher")
5
 
6
+ # Display the content
7
+ content = """
8
+ **CodeBlast Dream Catcher** proposes an alternative approach for searching multidimensional space for knowledge based on the following principles:
 
 
 
9
 
10
+ 1. An "all possible combinations space" exists in multidimensional space where one doesn't create knowledge but discovers it.
11
+ 2. This multidimensional space is best searched with LLMs using goals, as goals carry the recipes for accomplishing them.
12
+ 3. There exists a multidimensional "all possible" goal space consisting of interconnected goals resembling a graph.
13
+ 4. This multidimensional goals space can best be searched by remapping it to the 2D Infinite Canvas proposed in the LabLab.ai Build Your Business StartUp Hackathon's "Navigating the Infinite Plane".
14
+ 5. The infinite canvas can be created using a 50256 base number system derived from the GPT-2 tokenization labels.
15
+ 6. To avoid the costly computational expense of base number conversion, hidden and unhidden states are created in the 2D infinite plane.
16
+ 7. These hidden and unhidden states correspond to the conscious and unconscious mind, proposing that the human brain uses a similar mechanism to avoid the heavy cost of base number conversion.
17
+ 8. Thus, searching for knowledge becomes a simple mapping problem in 2D and 1D space in both hidden and unhidden states.
18
+ """
19
 
20
+ st.markdown(content)