Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavya031 committed Mar 28, 2024
1 parent badf647 commit 98537e1
Show file tree
Hide file tree
Showing 8 changed files with 894 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
/.venv
6 changes: 6 additions & 0 deletions Python/.ipynb_checkpoints/Untitled-checkpoint.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
13 changes: 13 additions & 0 deletions Python/Huggingface.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import requests

API_URL = "https://api-inference.huggingface.co/models/mistralai/Mixtral-8x7B-Instruct-v0.1"
headers = {"Authorization": "Bearer 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"}

def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()

output = query({
"inputs": "what up my",
})
print(output)
820 changes: 820 additions & 0 deletions Python/Untitled.ipynb

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions Python/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import requests

url = "https://api.runpod.ai/v2/bvcvg7we01985t/runsync"

payload = {
"input": {
"audio": "https://bot.heavensml.workers.dev/0:/David%20Goggins%EF%BC%9A%20How%20to%20Build%20Immense%20Inner%20Strength%20%5BnDLb8_wgX50%5D.mp3",
"model": "base",
"transcription": "plain_text",
"translate": False,
"language": "en",
"temperature": 0,
"best_of": 5,
"beam_size": 5,
"patience": 1,
"suppress_tokens": "-1",
"condition_on_previous_text": False,
"temperature_increment_on_fallback": 0.2,
"compression_ratio_threshold": 2.4,
"logprob_threshold": -1,
"no_speech_threshold": 0.6,
"word_timestamps": False
},
"enable_vad": False
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "WRLYKRSUCMOH12KK7OVULIV3O2LALHIK8VZJG1GX"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
2 changes: 1 addition & 1 deletion src/app/Design.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Profile from "./components/Element/Profile";
// Authicatiion Section
import { getServerSession } from "next-auth";
import { AuthOptions, authOptions } from "./lib/nextAuth";

export default async function App() {
const session = await getServerSession();
console.log(session);
Expand Down Expand Up @@ -44,5 +43,6 @@ export default async function App() {
</NavbarItem>
</NavbarContent>
</Navbar>

);
}
17 changes: 17 additions & 0 deletions src/app/components/Element/serchbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";
import {Input} from "@nextui-org/react";

export default function serach() {
return (
<Input
isClearable
type="email"
label="Email"
variant="bordered"
placeholder="Enter your email"
defaultValue="[email protected]"
onClear={() => console.log("input cleared")}
className="max-w-xs"
/>
);
}
2 changes: 2 additions & 0 deletions src/app/page.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@

import Navbar from "./components/Navbar";
import Design from "./Design";
import serach from "./components/Element/serachbar";

const Home = () => {
return (

<div>
<Design />
<serach />
</div>

);
Expand Down

0 comments on commit 98537e1

Please sign in to comment.