forked from caraml-dev/mlp
-
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.
- Loading branch information
1 parent
69de678
commit 49dbeac
Showing
4 changed files
with
35 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from "react"; | ||
import { EuiPageTemplate } from "@elastic/eui"; | ||
import config from "./../config"; | ||
|
||
export const CaraMLAIPage = () => { | ||
const iframe = `<iframe src=${config.CARAML_AI_STREAMLIT_HOMEPAGE} style="height: 80vh; width: 100%;"></iframe>` | ||
|
||
function Iframe(props) { | ||
return (<div dangerouslySetInnerHTML={ {__html: props.iframe?props.iframe:""}} />); | ||
} | ||
return ( | ||
<EuiPageTemplate restrictWidth="90%" panelled={false}> | ||
<EuiPageTemplate.Header | ||
bottomBorder={false} | ||
iconType="timelionApp" | ||
pageTitle="CaraML AI" | ||
/> | ||
|
||
<EuiPageTemplate.Section paddingSize="none"> | ||
<Iframe iframe={iframe} /> | ||
</EuiPageTemplate.Section> | ||
</EuiPageTemplate> | ||
); | ||
}; |
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