{"version":"4.44.0","mode":"blocks","app_id":9555552293476911741,"dev_mode":false,"analytics_enabled":true,"components":[{"id":1,"type":"html","props":{"value":"<h1 align=\"center\">OpenAI-O1-Mini: Research Preview (Short-Term Availability)</h1>","show_label":false,"visible":true,"elem_classes":[],"name":"html","_selectable":false},"skip_api":false,"component_class_id":"250f2d79d505ca0e6d62e7360ebf6bb5","key":null,"api_info":{"type":"string"},"example_inputs":"<p>Hello</p>"},{"id":2,"type":"html","props":{"value":"<h3 align=\"center\" style=\"color: red;\">If this app doesn't respond, consider trying our GPT-4o app:<br/><a href=\"https://huggingface.co/spaces/yuntian-deng/ChatGPT4\">https://huggingface.co/spaces/yuntian-deng/ChatGPT4</a></h3>","show_label":false,"visible":true,"elem_classes":[],"name":"html","_selectable":false},"skip_api":false,"component_class_id":"250f2d79d505ca0e6d62e7360ebf6bb5","key":null,"api_info":{"type":"string"},"example_inputs":"<p>Hello</p>"},{"id":3,"type":"column","props":{"scale":1,"min_width":320,"variant":"default","visible":false,"elem_id":"col_container","show_progress":false,"name":"column"},"skip_api":true,"component_class_id":"214e3d6261b9edacc5d34ea4e8655821","key":null},{"id":4,"type":"chatbot","props":{"likeable":false,"value":[],"type":"tuples","show_label":true,"container":true,"min_width":160,"visible":true,"elem_id":"chatbot","elem_classes":[],"latex_delimiters":[{"left":"$$","right":"$$","display":true}],"rtl":false,"show_share_button":true,"show_copy_button":false,"avatar_images":[null,null],"sanitize_html":true,"render_markdown":true,"bubble_full_width":true,"line_breaks":true,"show_copy_all_button":false,"name":"chatbot","_selectable":false},"skip_api":false,"component_class_id":"f5586b71f64ccd6eb7f4bfd6c1e91abb","key":null,"api_info":{"$defs":{"ComponentMessage":{"properties":{"component":{"title":"Component","type":"string"},"value":{"title":"Value"},"constructor_args":{"title":"Constructor Args","type":"object"},"props":{"title":"Props","type":"object"}},"required":["component","value","constructor_args","props"],"title":"ComponentMessage","type":"object"},"FileData":{"description":"The FileData class is a subclass of the GradioModel class that represents a file object within a Gradio interface. It is used to store file data and metadata when a file is uploaded.\n\nAttributes:\n    path: The server file path where the file is stored.\n    url: The normalized server URL pointing to the file.\n    size: The size of the file in bytes.\n    orig_name: The original filename before upload.\n    mime_type: The MIME type of the file.\n    is_stream: Indicates whether the file is a stream.\n    meta: Additional metadata used internally (should not be changed).","properties":{"path":{"title":"Path","type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Url"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Size"},"orig_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Orig Name"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Mime Type"},"is_stream":{"default":false,"title":"Is Stream","type":"boolean"},"meta":{"default":{"_type":"gradio.FileData"},"title":"Meta","type":"object"}},"required":["path"],"title":"FileData","type":"object"},"FileMessage":{"properties":{"file":{"$ref":"#/$defs/FileData"},"alt_text":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Alt Text"}},"required":["file"],"title":"FileMessage","type":"object"}},"items":{"maxItems":2,"minItems":2,"prefixItems":[{"anyOf":[{"type":"string"},{"$ref":"#/$defs/FileMessage"},{"$ref":"#/$defs/ComponentMessage"},{"type":"null"}]},{"anyOf":[{"type":"string"},{"$ref":"#/$defs/FileMessage"},{"$ref":"#/$defs/ComponentMessage"},{"type":"null"}]}],"type":"array"},"title":"ChatbotDataTuples","type":"array"},"example_inputs":[["Hello!",null]]},{"id":5,"type":"textbox","props":{"lines":1,"max_lines":20,"placeholder":"Hi there!","label":"Type an input and press Enter","show_label":true,"container":true,"min_width":160,"visible":true,"autofocus":false,"autoscroll":true,"elem_classes":[],"type":"text","rtl":false,"show_copy_button":false,"name":"textbox","_selectable":false},"skip_api":false,"component_class_id":"d0491bb0fbd427bdb2a4549c4d1ac869","key":null,"api_info":{"type":"string"},"example_inputs":"Hello!!"},{"id":6,"type":"state","props":{"value":[],"time_to_live":null,"delete_callback":"<function State.__init__.<locals>.<lambda> at 0x7f4826a9b130>","name":"state","_selectable":false},"skip_api":true,"component_class_id":"52234f8c5f6f16893853acd5e503a8a8","key":null},{"id":7,"type":"row","props":{"variant":"default","visible":true,"equal_height":true,"show_progress":false,"name":"row"},"skip_api":true,"component_class_id":"b5cf3d15e2293fb5ccc071d7b8d69f64","key":null},{"id":8,"type":"column","props":{"scale":7,"min_width":320,"variant":"default","visible":true,"show_progress":false,"name":"column"},"skip_api":true,"component_class_id":"214e3d6261b9edacc5d34ea4e8655821","key":null},{"id":9,"type":"button","props":{"value":"Run","variant":"secondary","visible":true,"interactive":true,"elem_classes":[],"name":"button","_selectable":false},"skip_api":true,"component_class_id":"43ff9969f0bf4553b77ca8dc5b4850bc","key":null},{"id":10,"type":"column","props":{"scale":3,"min_width":320,"variant":"default","visible":true,"show_progress":false,"name":"column"},"skip_api":true,"component_class_id":"214e3d6261b9edacc5d34ea4e8655821","key":null},{"id":11,"type":"textbox","props":{"lines":1,"max_lines":20,"label":"Status code from OpenAI server","show_label":true,"container":true,"min_width":160,"visible":true,"autofocus":false,"autoscroll":true,"elem_classes":[],"type":"text","rtl":false,"show_copy_button":false,"name":"textbox","_selectable":false},"skip_api":false,"component_class_id":"d0491bb0fbd427bdb2a4549c4d1ac869","key":null,"api_info":{"type":"string"},"example_inputs":"Hello!!"},{"id":12,"type":"form","props":{"scale":0,"min_width":0,"name":"form"},"skip_api":true,"component_class_id":"43cda85c6ff7a5dd8f83d29496b014ee","key":null},{"id":13,"type":"accordion","props":{"label":"Parameters","open":false,"visible":true,"name":"accordion"},"skip_api":true,"component_class_id":"b49c1903c3591b866d0adab5a2f6e48b","key":null},{"id":14,"type":"slider","props":{"minimum":0,"maximum":1.0,"value":1.0,"step":0.05,"label":"Top-p (nucleus sampling)","show_label":true,"container":true,"min_width":160,"interactive":true,"visible":true,"elem_classes":[],"name":"slider","_selectable":false},"skip_api":false,"component_class_id":"1bc15a255bbbd15b85b58706accd599f","key":null,"api_info":{"type":"number","description":"numeric value between 0 and 1.0"},"example_inputs":0},{"id":15,"type":"slider","props":{"minimum":0,"maximum":5.0,"value":1.0,"step":0.1,"label":"Temperature","show_label":true,"container":true,"min_width":160,"interactive":true,"visible":true,"elem_classes":[],"name":"slider","_selectable":false},"skip_api":false,"component_class_id":"1bc15a255bbbd15b85b58706accd599f","key":null,"api_info":{"type":"number","description":"numeric value between 0 and 5.0"},"example_inputs":0},{"id":16,"type":"number","props":{"value":0,"show_label":true,"container":true,"min_width":160,"visible":false,"elem_classes":[],"precision":0,"step":1,"name":"number","_selectable":false},"skip_api":false,"component_class_id":"013e0bc782bafe4c933e4047ef3b7ba6","key":null,"api_info":{"type":"number"},"example_inputs":3},{"id":17,"type":"form","props":{"scale":0,"min_width":0,"name":"form"},"skip_api":true,"component_class_id":"43cda85c6ff7a5dd8f83d29496b014ee","key":null},{"id":18,"type":"form","props":{"scale":0,"min_width":0,"name":"form"},"skip_api":true,"component_class_id":"43cda85c6ff7a5dd8f83d29496b014ee","key":null},{"id":19,"type":"column","props":{"scale":1,"min_width":320,"variant":"default","visible":true,"elem_id":"user_consent_container","show_progress":false,"name":"column"},"skip_api":true,"component_class_id":"214e3d6261b9edacc5d34ea4e8655821","key":null},{"id":20,"type":"checkbox","props":{"value":false,"show_label":true,"container":true,"min_width":160,"visible":false,"elem_classes":[],"name":"checkbox","_selectable":false},"skip_api":false,"component_class_id":"b2c2c8b2ac4aa89c0f17edb93f9d0c1b","key":null,"api_info":{"type":"boolean"},"example_inputs":true},{"id":21,"type":"accordion","props":{"label":"User Consent for Data Collection, Use, and Sharing","open":true,"visible":true,"name":"accordion"},"skip_api":true,"component_class_id":"b49c1903c3591b866d0adab5a2f6e48b","key":null},{"id":22,"type":"html","props":{"value":"\n            <div>\n                <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>\n                <ol>\n                    <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>\n                    <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>\n                    <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>\n                    <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>\n                </ol>\n                <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>\n            </div>\n            ","show_label":false,"visible":true,"elem_classes":[],"name":"html","_selectable":false},"skip_api":false,"component_class_id":"250f2d79d505ca0e6d62e7360ebf6bb5","key":null,"api_info":{"type":"string"},"example_inputs":"<p>Hello</p>"},{"id":23,"type":"button","props":{"value":"I Agree","variant":"secondary","visible":true,"interactive":true,"elem_classes":[],"name":"button","_selectable":false},"skip_api":true,"component_class_id":"43ff9969f0bf4553b77ca8dc5b4850bc","key":null},{"id":24,"type":"form","props":{"scale":0,"min_width":0,"name":"form"},"skip_api":true,"component_class_id":"43cda85c6ff7a5dd8f83d29496b014ee","key":null}],"css":"#col_container { margin-left: auto; margin-right: auto;}\n                #chatbot {height: 520px; overflow: auto;}","connect_heartbeat":true,"js":null,"head":null,"title":"Gradio","space_id":"yuntian-deng/o1mini","enable_queue":true,"show_error":false,"show_api":true,"is_colab":false,"max_file_size":null,"stylesheets":["https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap","https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&display=swap"],"theme":"default","protocol":"sse_v3","body_css":{"body_background_fill":"white","body_text_color":"#1f2937","body_background_fill_dark":"#0b0f19","body_text_color_dark":"#f3f4f6"},"fill_height":false,"fill_width":false,"theme_hash":"0d58f89b4c2aef0d338b84979b9ffb76d102d25035087d6771f50989d2612182","layout":{"id":0,"children":[{"id":1},{"id":2},{"id":3,"children":[{"id":4},{"id":18,"children":[{"id":5}]},{"id":6},{"id":7,"children":[{"id":8,"children":[{"id":9}]},{"id":10,"children":[{"id":12,"children":[{"id":11}]}]}]},{"id":13,"children":[{"id":17,"children":[{"id":14},{"id":15},{"id":16}]}]}]},{"id":19,"children":[{"id":24,"children":[{"id":20}]},{"id":21,"children":[{"id":22},{"id":23}]}]}]},"dependencies":[{"id":0,"targets":[[23,"click"]],"inputs":[],"outputs":[20],"backend_fn":false,"js":"(x) => confirm('By clicking \"OK\", I agree that my data may be published or shared.')","queue":false,"api_name":"js_fn","scroll_to_output":false,"show_progress":"full","batch":false,"max_batch_size":4,"cancels":[],"types":{"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":false,"zerogpu":false,"rendered_in":null},{"id":1,"targets":[[20,"change"]],"inputs":[],"outputs":[19,3],"backend_fn":true,"js":null,"queue":false,"api_name":"enable_inputs","scroll_to_output":false,"show_progress":"full","batch":false,"max_batch_size":4,"cancels":[],"types":{"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"always_last","show_api":true,"zerogpu":false,"rendered_in":null},{"id":2,"targets":[[5,"submit"]],"inputs":[],"outputs":[5,9],"backend_fn":true,"js":null,"queue":false,"api_name":"reset_textbox","scroll_to_output":false,"show_progress":"full","batch":false,"max_batch_size":4,"cancels":[],"types":{"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":true,"zerogpu":false,"rendered_in":null},{"id":3,"targets":[[5,"submit"]],"inputs":[5,14,15,16,4,6],"outputs":[4,6,16,11,5,9],"backend_fn":true,"js":null,"queue":true,"api_name":"predict","scroll_to_output":false,"show_progress":"full","batch":false,"max_batch_size":4,"cancels":[],"types":{"generator":true,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":true,"zerogpu":false,"rendered_in":null},{"id":4,"targets":[[9,"click"]],"inputs":[],"outputs":[5,9],"backend_fn":true,"js":null,"queue":false,"api_name":"reset_textbox_1","scroll_to_output":false,"show_progress":"full","batch":false,"max_batch_size":4,"cancels":[],"types":{"generator":false,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":true,"zerogpu":false,"rendered_in":null},{"id":5,"targets":[[9,"click"]],"inputs":[5,14,15,16,4,6],"outputs":[4,6,16,11,5,9],"backend_fn":true,"js":null,"queue":true,"api_name":"predict_1","scroll_to_output":false,"show_progress":"full","batch":false,"max_batch_size":4,"cancels":[],"types":{"generator":true,"cancel":false},"collects_event_data":false,"trigger_after":null,"trigger_only_on_success":false,"trigger_mode":"once","show_api":true,"zerogpu":false,"rendered_in":null}],"root":"https://yuntian-deng-o1mini.hf.space","username":null}