-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:lukas-holzner/codefusion-hackathon
- Loading branch information
Showing
20 changed files
with
609 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from fastapi import APIRouter, Body | ||
from fastapi.responses import FileResponse | ||
from app.ai_manager import convert_text_to_audio | ||
|
||
|
||
router = APIRouter() | ||
|
||
@router.post("/tts/") | ||
async def tts(text: str = Body(...), voice: str = Body("alloy")): | ||
return await convert_text_to_audio(text, voice) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ sqlalchemy | |
pydantic | ||
python-dotenv | ||
openai | ||
|
||
python-multipart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import React from "react"; | ||
import { | ||
Drawer, | ||
IconButton, | ||
List, | ||
ListItem, | ||
ListItemIcon, | ||
ListItemText, | ||
Typography, | ||
useMediaQuery, | ||
useTheme, | ||
} from "@mui/material"; | ||
import FormatListBulletedIcon from "@mui/icons-material/FormatListBulleted"; | ||
import CircleIcon from '@mui/icons-material/Circle'; | ||
|
||
type AgendaItem = { | ||
agenda_item: string; | ||
completed: boolean; | ||
} | ||
|
||
type AgendaDrawerProps = { | ||
agendaItems: AgendaItem[]; | ||
isOpen: boolean; | ||
onClose: () => void; | ||
} | ||
|
||
export const AgendaDrawerWidth = 250; | ||
|
||
export const AgendaDrawer: React.FC<AgendaDrawerProps> = ({ agendaItems, isOpen, onClose }) => { | ||
const theme = useTheme(); | ||
const isMobile = useMediaQuery(theme.breakpoints.down("sm")); | ||
|
||
const drawerContent = ( | ||
<List> | ||
<Typography variant="h6" sx={{ p: 2, mt: 8 }}> | ||
Agenda | ||
</Typography> | ||
{agendaItems.map((item, index) => ( | ||
<ListItem key={index}> | ||
<ListItemIcon sx={{ minWidth: '16px' }}> | ||
<CircleIcon sx={{width: '8px', height: '8px'}} /> | ||
</ListItemIcon> | ||
<ListItemText primary={item.agenda_item} /> | ||
</ListItem> | ||
))} | ||
</List> | ||
); | ||
|
||
return ( | ||
<Drawer | ||
anchor="right" | ||
open={isOpen} | ||
onClose={onClose} | ||
variant={isMobile ? "temporary" : "permanent"} | ||
sx={{ | ||
width: AgendaDrawerWidth, | ||
flexShrink: 0, | ||
'& .MuiDrawer-paper': { | ||
width: AgendaDrawerWidth, | ||
boxSizing: 'border-box', | ||
}, | ||
}} | ||
> | ||
{drawerContent} | ||
</Drawer> | ||
); | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.