Skip to content

Commit

Permalink
Merge pull request #6 from cdreetz/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
cdreetz authored Sep 5, 2024
2 parents 5604bbe + f20847c commit 5add7eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions app/llm-eval/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export default function Home() {
for (let promptIndex = 0; promptIndex < prompts.length; promptIndex++) {
const prompt = prompts[promptIndex];

//for (const model of selectedModels) {
await Promise.all(selectedModels.map(async (model) => {
try {
const response = await fetch('/api/stream-text', {
Expand Down Expand Up @@ -135,7 +134,7 @@ export default function Home() {
<AlertDescription>{error}</AlertDescription>
</Alert>
)}
<div className="grid grid-cols-2 gap-4 mb-4">
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
<div className="border rounded-lg p-4">
<ModelSelectionForm
availableModels={AVAILABLE_MODELS}
Expand All @@ -151,7 +150,7 @@ export default function Home() {
/>
</div>
</div>
<ScrollArea className="h-[400px] border rounded-lg p-4">
<ScrollArea className="h-[400px] md:h-[600px] border rounded-lg p-4">
<ResultsTable results={results} selectedModels={selectedModels} isLoading={isLoading} isInitial={isInitial} />
</ScrollArea>
</main>
Expand Down
6 changes: 3 additions & 3 deletions app/transcribe/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ export default function TranscribePage() {
<AlertDescription>{error}</AlertDescription>
</Alert>
)}
<div className="flex space-x-6">
<div className="w-1/3 space-y-4 border rounded-lg p-4">
<div className="flex flex-col md:flex-row md:space-x-6 space-y-6 md:space-y-0">
<div className="w-full md:w-1/3 space-y-4 border rounded-lg p-4">
<Input
type="file"
accept="audio/*"
Expand Down Expand Up @@ -174,7 +174,7 @@ export default function TranscribePage() {
{isLoading ? 'Transcribing...' : 'Transcribe Audio'}
</Button>
</div>
<div className="w-2/3 border rounded-lg p-4">
<div className="w-full md:w-2/3 border rounded-lg p-4">
<h2 className="text-xl font-semibold mb-2">Transcription Result:</h2>
<Textarea
value={transcription}
Expand Down
6 changes: 3 additions & 3 deletions app/vision/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export default function VisionPage() {
<AlertDescription>{error}</AlertDescription>
</Alert>
)}
<div className="flex space-x-6">
<div className="w-1/3 space-y-4 border rounded-lg p-4">
<div className="flex flex-col md:flex-row md:space-x-6 space-y-6 md:space-y-0">
<div className="w-full md:w-1/3 space-y-4 border rounded-lg p-4">
<Input
type="file"
accept="image/*"
Expand All @@ -107,7 +107,7 @@ export default function VisionPage() {
{isLoading ? 'Processing...' : 'Process Image'}
</Button>
</div>
<div className="w-2/3 border rounded-lg p-4">
<div className="w-full md:w-2/3 border rounded-lg p-4">
<h2 className="text-xl font-semibold mb-2">Result:</h2>
<Textarea
value={result}
Expand Down

0 comments on commit 5add7eb

Please sign in to comment.