Spaces:
Runtime error
Runtime error
restructure: migrate from crew -> workflows
Browse files- endpoints.py +1 -1
- ui/article_recommendation.py +1 -1
- ui/research_paper.py +2 -2
- ui/til_feedback.py +1 -1
- workflows/__init__.py +0 -0
- {crew → workflows}/article_suggestion.py +0 -0
- {crew → workflows}/research_article_suggester.py +0 -0
- {crew → workflows}/til.py +0 -0
endpoints.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from dotenv import load_dotenv
|
| 2 |
import uvicorn
|
| 3 |
from fastapi import FastAPI, Query
|
| 4 |
-
from .
|
| 5 |
from fastapi.middleware.cors import CORSMiddleware
|
| 6 |
from langsmith import Client
|
| 7 |
from typing import List, Optional
|
|
|
|
| 1 |
from dotenv import load_dotenv
|
| 2 |
import uvicorn
|
| 3 |
from fastapi import FastAPI, Query
|
| 4 |
+
from .workflows.til import TilCrew, TilFeedbackResponse
|
| 5 |
from fastapi.middleware.cors import CORSMiddleware
|
| 6 |
from langsmith import Client
|
| 7 |
from typing import List, Optional
|
ui/article_recommendation.py
CHANGED
|
@@ -3,7 +3,7 @@ import json
|
|
| 3 |
import streamlit as st
|
| 4 |
import utils.settings as settings
|
| 5 |
|
| 6 |
-
from
|
| 7 |
from utils.write_to_json import write_dict_to_json as write_dict_to_json
|
| 8 |
load_dotenv()
|
| 9 |
settings.init()
|
|
|
|
| 3 |
import streamlit as st
|
| 4 |
import utils.settings as settings
|
| 5 |
|
| 6 |
+
from workflows.article_suggestion import article_recommendation_crew
|
| 7 |
from utils.write_to_json import write_dict_to_json as write_dict_to_json
|
| 8 |
load_dotenv()
|
| 9 |
settings.init()
|
ui/research_paper.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from
|
| 3 |
from streamlit_extras.capture import stdout
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
def main():
|
| 8 |
-
|
| 9 |
st.markdown(
|
| 10 |
"""
|
| 11 |
<style>
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from workflows.research_article_suggester import RecentArticleSuggester
|
| 3 |
from streamlit_extras.capture import stdout
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
def main():
|
| 8 |
+
|
| 9 |
st.markdown(
|
| 10 |
"""
|
| 11 |
<style>
|
ui/til_feedback.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from dotenv import load_dotenv
|
| 3 |
-
from
|
| 4 |
from streamlit_extras.capture import stdout
|
| 5 |
load_dotenv()
|
| 6 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from dotenv import load_dotenv
|
| 3 |
+
from workflows.til import TilCrew
|
| 4 |
from streamlit_extras.capture import stdout
|
| 5 |
load_dotenv()
|
| 6 |
|
workflows/__init__.py
ADDED
|
File without changes
|
{crew → workflows}/article_suggestion.py
RENAMED
|
File without changes
|
{crew → workflows}/research_article_suggester.py
RENAMED
|
File without changes
|
{crew → workflows}/til.py
RENAMED
|
File without changes
|