Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,23 +1,20 @@
|
|
| 1 |
-
import os
|
| 2 |
import streamlit as st
|
| 3 |
-
from clarifai.client.model import Model
|
| 4 |
|
| 5 |
-
#
|
| 6 |
-
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
|
| 10 |
-
|
| 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 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
|
| 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|