-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Feroze Mohideen
committed
May 16, 2024
1 parent
e92f3aa
commit 8be673b
Showing
5 changed files
with
49 additions
and
132 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
39 changes: 39 additions & 0 deletions
39
dashboard/src/main/home/add-on-dashboard/deepgram/DeepgramOverview.tsx
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,39 @@ | ||
import React from "react"; | ||
import AceEditor from "react-ace"; | ||
|
||
import Spacer from "components/porter/Spacer"; | ||
import Text from "components/porter/Text"; | ||
|
||
const DeepgramOverview: React.FC = () => { | ||
return ( | ||
<div> | ||
<Text size={16}>Example usage</Text> | ||
<Spacer y={0.5} /> | ||
<Text color="helper"> | ||
You can use this model over an auto-generated endpoint from any app | ||
running on Porter. | ||
</Text> | ||
<Spacer y={1} /> | ||
<AceEditor | ||
value={`curl http://my-model.default.svc.cluster.local:8000/v1/completions | ||
-H "Content-Type: application/json" | ||
-d '{ | ||
"prompt": "Long Island City is a", | ||
"max_tokens": 7, | ||
"temperature": 0 | ||
}'`} | ||
theme="porter" | ||
name="codeEditor" | ||
readOnly={true} | ||
height="120px" | ||
width="100%" | ||
style={{ borderRadius: "10px", color: "#aaaabb" }} | ||
showPrintMargin={false} | ||
showGutter={true} | ||
highlightActiveLine={false} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DeepgramOverview; |
112 changes: 0 additions & 112 deletions
112
dashboard/src/main/home/inference-dashboard/ExpandedModelTemplate.tsx
This file was deleted.
Oops, something went wrong.