import { Modal, Icon, Message} from 'semantic-ui-react' import "../../css/dist/output.css" import {ReactComponent as Gradio} from '../../images/gradio.svg' import {ReactComponent as Streamlit} from '../../images/streamlit.svg' import {ReactComponent as Exit} from '../../images/exit.svg' import { useState } from 'react' import {BsSearch} from 'react-icons/bs'; export default function Import(props){ const [tab, setTab] = useState("gradio") const [subTab, setSubTab] = useState(0) return (
  • {setTab("gradio")}}>
  • {setTab("streamlit")}}>
{props.quitHandeler(false)}}>
{ tab === "gradio" &&
  • {setSubTab(0)}}>
  • {setSubTab(1)}}>
{subTab === 0 && } {subTab === 1 && } {props.catch &&
🚫 Something went wrong...

🤔 Possible Things That could of happen

  • - The input was empty
  • - The connection was forbidden
  • - The name was already taken
  • - The link you gave did not pass the regex
    • - http://localhost:xxxx
    • - http://xxxxx.gradio.app
    • - https://hf.space/embed/$user/$space_name/+
  • - link already exist within the menu
}
}
) } function Local(props){ return (
🏗️ Comming soon... This tab will allow you grab your function from a given directory and build your own tabular module gradio functions
) } function Shared(props){ const [preview, setPreview] = useState("") const [fetchable, setFetch] = useState(false) const isFetchable = async (url) => { console.log(url) fetch(url, {mode : "no-cors"}).then((re) => { console.log(re) if(re.url.includes("http://localhost:3000")){ setFetch(false) } else { setFetch(true) } }).catch((err)=>{ setFetch(false) }) setFetch(false) } return (
{ if (e.key.includes("Enter")) props.appendHandler() }}>
{ fetchable === true &&

Preview