Spaces:
Runtime error
Runtime error
restructure the codebase
Browse files- __init__.py β app/__init__.py +0 -0
- {tests β app/api_endpoints}/__init__.py +0 -0
- {workflows β app/lib}/__init__.py +0 -0
- {lib β app/lib}/supabase_client.py +0 -0
- app/tests/__init__.py +0 -0
- {tests β app/tests}/til_test.py +1 -1
- app/ui/__init__.py +0 -0
- {ui β app/ui}/course_learn_suggest_expectations.py +2 -2
- {ui β app/ui}/main.css +0 -0
- {ui β app/ui}/til_feedback.py +3 -3
- app/utils/__init__.py +0 -0
- {utils β app/utils}/endpoints_utils.py +0 -0
- {utils β app/utils}/settings.py +0 -0
- {utils β app/utils}/write_to_json.py +0 -0
- app/workflows/__init__.py +0 -0
- {workflows β app/workflows}/article_suggestion.py +0 -0
- {workflows β app/workflows}/courses/expectation_revision.py +0 -0
- {workflows β app/workflows}/courses/lessons_extractor.py +0 -0
- {workflows β app/workflows}/courses/suggest_check_question.py +0 -0
- {workflows β app/workflows}/courses/suggest_expectations.py +0 -0
- {workflows β app/workflows}/research_article_suggester.py +0 -0
- {workflows β app/workflows}/til/analyse_til.py +0 -0
- {workflows β app/workflows}/til/analyse_til_v2.py +0 -0
- {workflows β app/workflows}/til/rewrite_til_v2.py +0 -0
- {workflows β app/workflows}/til/suggest_headlines_v2.py +0 -0
- {workflows β app/workflows}/tools/helpers.py +0 -0
- {workflows β app/workflows}/tools/scrape_website.py +0 -0
- {workflows β app/workflows}/tools/search_web.py +0 -0
- {workflows β app/workflows}/utils/feedback.py +1 -1
- endpoints.py +9 -9
- requirements.txt +1 -0
- ui_main.py +3 -3
__init__.py β app/__init__.py
RENAMED
|
File without changes
|
{tests β app/api_endpoints}/__init__.py
RENAMED
|
File without changes
|
{workflows β app/lib}/__init__.py
RENAMED
|
File without changes
|
{lib β app/lib}/supabase_client.py
RENAMED
|
File without changes
|
app/tests/__init__.py
ADDED
|
File without changes
|
{tests β app/tests}/til_test.py
RENAMED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import pytest
|
| 2 |
-
from
|
| 3 |
|
| 4 |
|
| 5 |
examples = [
|
|
|
|
| 1 |
import pytest
|
| 2 |
+
from app.workflows.til.analyse_til import TilCrew # type: ignore
|
| 3 |
|
| 4 |
|
| 5 |
examples = [
|
app/ui/__init__.py
ADDED
|
File without changes
|
{ui β app/ui}/course_learn_suggest_expectations.py
RENAMED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from workflows.courses.suggest_expectations import SuggestExpectations, Inputs as ExpectationsInputs, Expectation
|
| 3 |
from streamlit_extras.stylable_container import stylable_container
|
| 4 |
-
from workflows.courses.expectation_revision import ExpectationRevision
|
| 5 |
|
| 6 |
|
| 7 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from app.workflows.courses.suggest_expectations import SuggestExpectations, Inputs as ExpectationsInputs, Expectation
|
| 3 |
from streamlit_extras.stylable_container import stylable_container
|
| 4 |
+
from app.workflows.courses.expectation_revision import ExpectationRevision
|
| 5 |
|
| 6 |
|
| 7 |
|
{ui β app/ui}/main.css
RENAMED
|
File without changes
|
{ui β app/ui}/til_feedback.py
RENAMED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from dotenv import load_dotenv
|
| 3 |
-
from workflows.til.analyse_til import TilCrew
|
| 4 |
-
from workflows.til.analyse_til_v2 import AnalyseTilV2
|
| 5 |
from streamlit_extras.capture import stdout
|
| 6 |
-
from workflows.utils.feedback import Feedback
|
| 7 |
|
| 8 |
load_dotenv()
|
| 9 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from dotenv import load_dotenv
|
| 3 |
+
from app.workflows.til.analyse_til import TilCrew
|
| 4 |
+
from app.workflows.til.analyse_til_v2 import AnalyseTilV2
|
| 5 |
from streamlit_extras.capture import stdout
|
| 6 |
+
from app.workflows.utils.feedback import Feedback
|
| 7 |
|
| 8 |
load_dotenv()
|
| 9 |
|
app/utils/__init__.py
ADDED
|
File without changes
|
{utils β app/utils}/endpoints_utils.py
RENAMED
|
File without changes
|
{utils β app/utils}/settings.py
RENAMED
|
File without changes
|
{utils β app/utils}/write_to_json.py
RENAMED
|
File without changes
|
app/workflows/__init__.py
ADDED
|
File without changes
|
{workflows β app/workflows}/article_suggestion.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/courses/expectation_revision.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/courses/lessons_extractor.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/courses/suggest_check_question.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/courses/suggest_expectations.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/research_article_suggester.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/til/analyse_til.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/til/analyse_til_v2.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/til/rewrite_til_v2.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/til/suggest_headlines_v2.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/tools/helpers.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/tools/scrape_website.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/tools/search_web.py
RENAMED
|
File without changes
|
{workflows β app/workflows}/utils/feedback.py
RENAMED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from pydantic import BaseModel, UUID4
|
| 2 |
from typing import List, Optional
|
| 3 |
from langsmith import Client
|
| 4 |
-
from .
|
| 5 |
|
| 6 |
class Feedback(BaseModel):
|
| 7 |
metric_type: Optional[str]
|
|
|
|
| 1 |
from pydantic import BaseModel, UUID4
|
| 2 |
from typing import List, Optional
|
| 3 |
from langsmith import Client
|
| 4 |
+
from app.lib.supabase_client import SupabaseClient
|
| 5 |
|
| 6 |
class Feedback(BaseModel):
|
| 7 |
metric_type: Optional[str]
|
endpoints.py
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
from dotenv import load_dotenv
|
| 2 |
load_dotenv()
|
| 3 |
|
| 4 |
-
from .workflows.til.suggest_headlines_v2 import SuggestHeadlinesV2, Response as SuggestHeadlinesResponse
|
| 5 |
-
from .workflows.til.rewrite_til_v2 import RewriteTilV2, Response as RewriteTilResponse
|
| 6 |
-
from .workflows.courses.expectation_revision import ExpectationRevision, Inputs as ExpectationRevisionInputs, Response as ExpectationRevisionResponse
|
| 7 |
-
from .workflows.courses.suggest_check_question import SuggestCheckQuestion, Inputs as SuggestCheckQuestionInputs, Response as SuggestCheckQuestionResponse
|
| 8 |
-
from .workflows.courses.suggest_expectations import SuggestExpectations, Inputs as SuggestExpectationsInputs, Expectation, Response as SuggestExpectationsResponse
|
| 9 |
-
from .workflows.til.analyse_til import TilCrew, TilFeedbackResponse
|
| 10 |
-
from .workflows.til.analyse_til_v2 import AnalyseTilV2, TilV2FeedbackResponse
|
| 11 |
-
from .workflows.utils.feedback import Feedback, post_feedback, NewFeedback
|
| 12 |
-
from .utils.endpoints_utils import CreateTilInputs
|
| 13 |
from fastapi import FastAPI
|
| 14 |
from fastapi.middleware.cors import CORSMiddleware
|
| 15 |
from pydantic import UUID4
|
|
|
|
| 1 |
from dotenv import load_dotenv
|
| 2 |
load_dotenv()
|
| 3 |
|
| 4 |
+
from app.workflows.til.suggest_headlines_v2 import SuggestHeadlinesV2, Response as SuggestHeadlinesResponse
|
| 5 |
+
from app.workflows.til.rewrite_til_v2 import RewriteTilV2, Response as RewriteTilResponse
|
| 6 |
+
from app.workflows.courses.expectation_revision import ExpectationRevision, Inputs as ExpectationRevisionInputs, Response as ExpectationRevisionResponse
|
| 7 |
+
from app.workflows.courses.suggest_check_question import SuggestCheckQuestion, Inputs as SuggestCheckQuestionInputs, Response as SuggestCheckQuestionResponse
|
| 8 |
+
from app.workflows.courses.suggest_expectations import SuggestExpectations, Inputs as SuggestExpectationsInputs, Expectation, Response as SuggestExpectationsResponse
|
| 9 |
+
from app.workflows.til.analyse_til import TilCrew, TilFeedbackResponse
|
| 10 |
+
from app.workflows.til.analyse_til_v2 import AnalyseTilV2, TilV2FeedbackResponse
|
| 11 |
+
from app.workflows.utils.feedback import Feedback, post_feedback, NewFeedback
|
| 12 |
+
from app.utils.endpoints_utils import CreateTilInputs
|
| 13 |
from fastapi import FastAPI
|
| 14 |
from fastapi.middleware.cors import CORSMiddleware
|
| 15 |
from pydantic import UUID4
|
requirements.txt
CHANGED
|
@@ -6,6 +6,7 @@ fastapi
|
|
| 6 |
fastapi[standard]
|
| 7 |
fastapi_cors
|
| 8 |
langchain_community
|
|
|
|
| 9 |
langchain_google_genai
|
| 10 |
langchain_openai
|
| 11 |
langchainhub
|
|
|
|
| 6 |
fastapi[standard]
|
| 7 |
fastapi_cors
|
| 8 |
langchain_community
|
| 9 |
+
fastapi[standard]
|
| 10 |
langchain_google_genai
|
| 11 |
langchain_openai
|
| 12 |
langchainhub
|
ui_main.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from dotenv import load_dotenv
|
| 2 |
from streamlit_extras.stylable_container import stylable_container
|
| 3 |
-
from ui.til_feedback import feedback_main
|
| 4 |
-
from ui.course_learn_suggest_expectations import course_suggester_main
|
| 5 |
import math
|
| 6 |
import streamlit as st
|
| 7 |
import subprocess
|
|
@@ -48,7 +48,7 @@ def show_main_page():
|
|
| 48 |
'''
|
| 49 |
st.markdown(page_bg_img, unsafe_allow_html=True)
|
| 50 |
|
| 51 |
-
css = load_css("ui/main.css")
|
| 52 |
|
| 53 |
st.markdown(f"<style>{css}</style>", unsafe_allow_html=True)
|
| 54 |
|
|
|
|
| 1 |
from dotenv import load_dotenv
|
| 2 |
from streamlit_extras.stylable_container import stylable_container
|
| 3 |
+
from app.ui.til_feedback import feedback_main
|
| 4 |
+
from app.ui.course_learn_suggest_expectations import course_suggester_main
|
| 5 |
import math
|
| 6 |
import streamlit as st
|
| 7 |
import subprocess
|
|
|
|
| 48 |
'''
|
| 49 |
st.markdown(page_bg_img, unsafe_allow_html=True)
|
| 50 |
|
| 51 |
+
css = load_css("app/ui/main.css")
|
| 52 |
|
| 53 |
st.markdown(f"<style>{css}</style>", unsafe_allow_html=True)
|
| 54 |
|