<body style="width: 100%; margin: 0px; padding: 0px; display: flex; flex-direction: column; flex-grow: 1; background-color: rgb(11, 15, 25);">
		<gradio-app control_page_title="true" embed="false" eager="true" style="display: flex; flex-direction: column; flex-grow: 1">
		<div class="gradio-container gradio-container-3-21-0 svelte-v63enf app dark" style="min-height: initial; flex-grow: 1;"><div class="main svelte-v63enf">  <div class="wrap svelte-ujkds4" style="min-height: 100%;"><div class="contain" style="flex-grow: 1;"><div id="component-0" style="min-width: min(0px, 100%); flex-grow: 1" class="svelte-1adap6y gap"><div id="component-1" class="block svelte-1scc9gv padded" style="padding: 0px; margin: 0px; border-width: 0px; box-shadow: none; overflow: visible; background: transparent; border-style: solid;"><div class="wrap center svelte-1d50qkz hide" style="position: absolute; padding: 0px;"></div> <div class="svelte-1ed2p3z"><div class="prose svelte-1ybaih5" id="component-1"><h1 align="center">GPT-4O: Research Preview (128K token limit, Short-Term Availability)</h1></div></div></div><div id="component-2" class="block svelte-1scc9gv padded" style="padding: 0px; margin: 0px; border-width: 0px; box-shadow: none; overflow: visible; background: transparent; border-style: solid;"><div class="wrap center svelte-1d50qkz hide" style="position: absolute; padding: 0px;"></div> <div class="svelte-1ed2p3z"><div class="prose svelte-1ybaih5" id="component-2"><h3 style="color: red;" align="center">If this app doesn't respond, consider trying our other GPT-4O app:<br><a href="https://huggingface.co/spaces/yuntian-deng/ChatGPT4Turbo" target="_blank">https://huggingface.co/spaces/yuntian-deng/ChatGPT4Turbo</a></h3></div></div></div><div id="col_container" style="min-width: min(320px, 100%); flex-grow: 1" class="svelte-1adap6y gap"><div id="chatbot" class="block svelte-1scc9gv" style="border-style: solid; overflow: visible;"><div style="  " class="svelte-1eq475l"><span class="svelte-1eq475l"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--carbon" width="100%" height="100%" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path fill="currentColor" d="M17.74 30L16 29l4-7h6a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h9v2H6a4 4 0 0 1-4-4V8a4 4 0 0 1 4-4h20a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4h-4.84Z"></path><path fill="currentColor" d="M8 10h16v2H8zm0 6h10v2H8z"></path></svg></span> Chatbot</div> <div class="wrap svelte-a99nd8"><div class="message-wrap svelte-a99nd8"> </div></div></div><div class="form svelte-w3fdu4"><div id="component-5" class="block svelte-1scc9gv padded" style="border-style: solid; overflow: visible;"> <label class="svelte-drgfj5"><span class="svelte-1jsbsph">Type an input and press Enter</span>  <textarea data-testid="textbox" class="scroll-hide svelte-drgfj5" placeholder="Hi there!" rows="1" style="overflow-y: scroll; height: 42px;"></textarea></label></div></div><div class="flex svelte-1btyfsc" id="component-7"><div id="component-8" style="min-width: min(320px, 100%); flex-grow: 7" class="svelte-1adap6y gap"><button class="lg secondary svelte-58yet2" style=" width: var(--size-full); flex-grow: 1; " id="component-9">Run</button></div><div id="component-10" style="min-width: min(320px, 100%); flex-grow: 3" class="svelte-1adap6y gap"><div class="form svelte-w3fdu4"><div id="component-11" class="block svelte-1scc9gv padded" style="border-style: solid; overflow: visible;"> <label class="svelte-drgfj5"><span class="svelte-1jsbsph">Status code from OpenAI server</span>  <textarea data-testid="textbox" class="scroll-hide svelte-drgfj5" placeholder="" rows="1" disabled="" style="overflow-y: scroll; height: 42px;"></textarea></label></div></div></div></div><div id="component-13" class="block svelte-1scc9gv padded" style="border-style: solid; overflow: visible;"><div class="wrap default svelte-1d50qkz hide" style="position: absolute; padding: 0px;"></div> <div class="label-wrap svelte-l0fc71"><span class="svelte-l0fc71">Parameters</span> <span class="icon svelte-l0fc71" style="transform: rotate(90deg);">▼</span></div> </div></div><div id="user_consent_container" style="min-width: min(320px, 100%); flex-grow: 1" class="svelte-1adap6y gap hide"><div class="form svelte-w3fdu4 hidden"><div id="component-20" class="block svelte-1scc9gv hidden padded" style="border-style: solid; overflow: visible;"><div class="wrap default svelte-1d50qkz hide" style="position: absolute; padding: 0px;"></div>  <label class="svelte-927721 disabled"><input disabled="" type="checkbox" name="test" data-testid="checkbox" class="svelte-927721"> <span class="ml-2 svelte-927721">Checkbox</span></label></div></div><div id="component-21" class="block svelte-1scc9gv padded" style="border-style: solid; overflow: visible;"><div class="wrap default svelte-1d50qkz hide" style="position: absolute; padding: 0px;"></div> <div class="label-wrap svelte-l0fc71 open"><span class="svelte-l0fc71">User Consent for Data Collection, Use, and Sharing</span> <span class="icon svelte-l0fc71" style="transform: rotate(0deg);">▼</span></div> <div id="" style="min-width: min(0px, 100%); flex-grow: 1" class="svelte-1adap6y gap"><div id="component-22" class="block svelte-1scc9gv padded" style="padding: 0px; margin: 0px; border-width: 0px; box-shadow: none; overflow: visible; background: transparent; border-style: solid;"><div class="wrap center svelte-1d50qkz hide" style="position: absolute; padding: 0px;"></div> <div class="svelte-1ed2p3z"><div class="prose svelte-1ybaih5" id="component-22">
            <div>
                <p>By using our app, which is powered by OpenAI's API, you acknowledge and agree to the following terms regarding the data you provide:</p>
                <ol>
                    <li><strong>Collection:</strong> We may collect information, including the inputs you type into our app, the outputs generated by OpenAI's API, and certain technical details about your device and connection (such as browser type, operating system, and IP address) provided by your device's request headers.</li>
                    <li><strong>Use:</strong> We may use the collected data for research purposes, to improve our services, and to develop new products or services, including commercial applications, and for security purposes, such as protecting against unauthorized access and attacks.</li>
                    <li><strong>Sharing and Publication:</strong> Your data, including the technical details collected from your device's request headers, may be published, shared with third parties, or used for analysis and reporting purposes.</li>
                    <li><strong>Data Retention:</strong> We may retain your data, including the technical details collected from your device's request headers, for as long as necessary.</li>
                </ol>
                <p>By continuing to use our app, you provide your explicit consent to the collection, use, and potential sharing of your data as described above. If you do not agree with our data collection, use, and sharing practices, please do not use our app.</p>
            </div>
            </div></div></div><button class="lg secondary svelte-58yet2" style="  " id="component-23">I Agree</button></div></div></div></div></div> <footer class="svelte-ujkds4"> <a href="https://gradio.app" class="built-with svelte-ujkds4" target="_blank" rel="noreferrer">Built with Gradio
				<img src="./assets/logo.0a070fcf.svg" alt="logo" class="svelte-ujkds4"></a></footer></div> </div> <style>#col_container { margin-left: auto; margin-right: auto;}
                #chatbot {height: 520px; overflow: auto;}</style></div></gradio-app>
		<script>
			const ce = document.getElementsByTagName("gradio-app");
			if (ce[0]) {
				ce[0].addEventListener("domchange", () => {
					document.body.style.padding = "0";
				});
				document.body.style.padding = "0";
			}
		</script>
	
</body>










<style>*{border:none!important;box-shadow:none!important;scrollbar-width:thin!important;scrollbar-color:#f00 #333!important;border-radius:0!important}body{font-family:monospace!important;width:100%!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;flex-grow:1!important;background:linear-gradient(to right,#111 0%,#333 50%,#111 100%)!important;color:#fff!important;font-size:18px!important;font-weight:normal!important}gradio-app{display:flex!important;flex-direction:column!important;flex-grow:1!important;background:linear-gradient(to right,#111 0%,#333 50%,#111 100%)!important}#col_container,#chatbot,.gradio-container,.main,.wrap,.contain,#component-1,#component-2,.message-wrap,.message,.block{background:linear-gradient(to right,#221 0%,#211 50%,#221 100%)!important;color:#fff!important;font-size:18px!important;margin:0!important;padding:0!important;font-weight:normal!important;border:none!important;box-shadow:none!important;max-width:100%!important;border-style:none!important}h1,h2,h3,p,span,div{color:#fff!important;margin:0!important;padding:0!important;font-weight:normal!important}#chatbot .message{margin:5px 0!important;padding:10px!important;color:#fff!important;border:1px solid #444!important;box-shadow:none!important;border-radius:0!important}h1{color:#8cf!important}h3{color:#9f9!important}#component-2 h3{color:#f63!important}input{background:linear-gradient(to right,#555 0%,#777 50%,#555 100%)!important;color:#fff!important;border:none!important;box-shadow:none!important;width:100%;height:auto!important;max-height:50vh!important;resize:none!important;overflow:auto!important}footer,.built-with,#component-13,.svelte-1eq475l{display:none!important}#col_container{padding:0!important;display:grid!important;grid-template-rows:auto 1fr!important;grid-template-columns:1fr auto!important}#chatbot{padding:0!important;color:#fff!important;border:none!important;box-shadow:none!important;border-style:none!important;flex-grow:1!important;width:100%!important;height:calc(90vh - 10px)!important;display:flex!important;flex-direction:column-reverse!important;grid-row:2/3!important;grid-column:span 2!important}#main{border-style:none!important}#gradio-container{max-width:100%!important;height:100vh!important;display:flex!important;flex-direction:column!important;flex-grow:1!important}#component-0,#component-1,#component-2,#col_container,#chatbot{flex-grow:1!important;min-height:0!important}#component-5,.form{grid-row:1/2!important;grid-column:1/2!important;height:auto!important}#form-input{order:-1!important;flex-grow:0!important}#user_consent_container{height:auto!important;flex-grow:0!important}.user{background: linear-gradient(to right,rgba(5,15,2,0.2) 0%,rgba(21,21,21,0.2) 50%,rgba(5,15,2,0.2) 100%) !important;}.bot{background: linear-gradient(to right,rgba(5,25,2,0.2) 0%,rgba(51,51,51,0.2) 50%,rgba(5,25,2,0.2) 100%) !important;}.message-wrap.svelte-a99nd8{gap:0!important;flex-grow:1!important;max-height:100%!important;background:linear-gradient(to right,#221 0%,#211 50%,#221 100%)!important}.message.svelte-a99nd8{border-radius:0!important;background:linear-gradient(to right,rgba(51,51,51,0.5) 0%,rgba(255,255,255,0.5) 50%,rgba(51,51,51,0.5) 100%)!important}.wrap.svelte-a99nd8{height:calc(100vh - 20px - 50px)!important;max-height:calc(100vh - 20px - 50px)!important}.gap.svelte-1adap6y{gap:0!important}.wrap.svelte-ujkds4{min-height:0!important}::-webkit-scrollbar{width:12px!important;height:12px!important}::-webkit-scrollbar-track{background:#333!important}::-webkit-scrollbar-thumb{background:#f00!important;border-radius:6px!important}::-webkit-scrollbar-thumb:hover{background:#a00!important}.svelte-1jsbsph{display:none!important}.svelte-1eq475l{display:none!important}textarea{font-size:18px!important;margin:0!important;max-height:50vh!important}#form-input{border:1px solid #444!important;grid-row:1/2!important;grid-column:1/2!important;top:0!important;left:0!important;width:100%!important;max-height:50vh!important;resize:vertical!important}#component-7{gap:0!important;grid-row:1/2!important;grid-column:2/3!important;display:flex!important;flex-shrink:0!important;overflow:hidden!important;flex-grow:0!important;width:20vw!important;height:auto!important}#component-10{display:none}.block.svelte-1scc9gv{border:1px solid #444!important}#component-1,#component-2{display:none!important}</style>









do distinct background colors for user and bot messages. output only full css style in one-lined string without descriptions or explanations.