1<!doctype html> 2<html 3 lang="en" 4 style=" 5 margin: 0; 6 padding: 0; 7 min-height: 100%; 8 display: flex; 9 flex-direction: column; 10 " 11> 12 <head> 13 <meta charset="utf-8" /> 14 <meta 15 name="viewport" 16 content="width=device-width, initial-scale=1, shrink-to-fit=no" 17 /> 18 19 <style> 20 :root { 21 --bg: white; 22 --col: #111827; 23 --bg-dark: grey; 24 --col-dark: #f3f4f6; 25 } 26 27 28 body { 29 background: var(--bg); 30 color: var(--col); 31 font-family: Arial, Helvetica, sans-serif; 32 } 33 34 @media (prefers-color-scheme: dark) { 35 body { 36 background: var(--bg-dark); 37 color: var(--col-dark); 38 } 39 } 40 </style> 41 42 <meta property="og:url" content="https://gradio.app/" /> 43 <meta property="og:type" content="website" /> 44 <meta property="og:image" content="" /> 45 <meta property="og:title" content="Gradio" /> 46 <meta 47 property="og:description" 48 content="" 49 /> 50 <meta name="twitter:card" content="summary_large_image" /> 51 <meta name="twitter:creator" content="@teamGradio" /> 52 <meta name="twitter:title" content="Gradio" /> 53 <meta 54 name="twitter:description" 55 content="" 56 /> 57 <meta name="twitter:image" content="" /> 58 59
59<script data-gradio-mode> 60 window.__gradio_mode__ = "app"; 61 window.iFrameResizer = { 62 heightCalculationMethod: "taggedElement" 63 }; 64 window.parent?.postMessage( 65 { type: "SET_SCROLLING", enabled: false }, 66 "*" 67 ); 68 </script>
68 69 70
70<script>window.gradio_config = {"version":"4.39.0","mode":"blocks","app_id":7072103515546954625,"dev_mode":false,"analytics_enabled":true,"components":[{"id":1,"type":"markdown","props":{"value":"\u003cdiv class=\"markdown-container\"\u003e\n \u003ch2\u003eSt. Mark\u0027s Finance Chatbot\u003c/h1\u003e\n\u003c/div\u003e","show_label":true,"rtl":false,"latex_delimiters":[{"left":"$$","right":"$$","display":true}],"visible":true,"elem_classes":[],"sanitize_html":true,"line_breaks":false,"header_links":false,"show_copy_button":false,"name":"markdown","_selectable":false},"skip_api":false,"component_class_id":"0f35515b9a3362b42bb6721c836157a0","key":null,"api_info":{"type":"string"},"example_inputs":"# Hello!"},{"id":2,"type":"chatbot","props":{"likeable":false,"value":[],"type":"tuples","show_label":false,"container":true,"scale":2,"min_width":160,"visible":true,"elem_classes":[],"latex_delimiters":[{"left":"\\begin{equation}","right":"\\end{equation}","display":true},{"left":"\\begin{align}","right":"\\end{align}","display":true},{"left":"\\begin{alignat}","right":"\\end{alignat}","display":true},{"left":"\\begin{gather}","right":"\\end{gather}","display":true},{"left":"\\begin{CD}","right":"\\end{CD}","display":true},{"left":"$$","right":"$$","display":true},{"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,"placeholder":"Ask me anything about personal finance, economics, or finance!","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":3,"type":"textbox","props":{"lines":1,"max_lines":20,"placeholder":"Type your question here...","label":"Enter Question","show_label":true,"container":true,"min_width":160,"visible":true,"autofocus":true,"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":4,"type":"state","props":{"value":[],"time_to_live":null,"delete_callback":"\u003cfunction State.__init__.\u003clocals\u003e.\u003clambda\u003e at 0x7f1880f31e10\u003e","name":"state","_selectable":false},"skip_api":true,"component_class_id":"52234f8c5f6f16893853acd5e503a8a8","key":null},{"id":5,"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":6,"type":"button","props":{"value":"Retry","variant":"secondary","size":"md","visible":true,"interactive":true,"elem_classes":[],"name":"button","_selectable":false},"skip_api":true,"component_class_id":"43ff9969f0bf4553b77ca8dc5b4850bc","key":null},{"id":7,"type":"button","props":{"value":"Clear","variant":"secondary","size":"md","visible":true,"interactive":true,"elem_classes":[],"show_api":false,"name":"button","_selectable":false},"skip_api":true,"component_class_id":"683b6fcca448a942c7223d23f966c51f","key":null},{"id":8,"type":"accordion","props":{"label":"Extra Options","open":false,"visible":true,"name":"accordion"},"skip_api":true,"component_class_id":"b49c1903c3591b866d0adab5a2f6e48b","key":null},{"id":9,"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":10,"type":"button","props":{"value":"Toggle Theme","variant":"secondary","size":"md","visible":true,"interactive":true,"elem_classes":[],"name":"button","_selectable":false},"skip_api":true,"component_class_id":"43ff9969f0bf4553b77ca8dc5b4850bc","key":null},{"id":11,"type":"row","props":{"variant":"default","visible":true,"equal_height":true,"show_progress":true,"name":"row"},"skip_api":true,"component_class_id":"b5cf3d15e2293fb5ccc071d7b8d69f64","key":null},{"id":12,"type":"button","props":{"value":"Common Questions","variant":"secondary","size":"md","visible":true,"interactive":true,"elem_classes":[],"name":"button","_selectable":false},"skip_api":true,"component_class_id":"43ff9969f0bf4553b77ca8dc5b4850bc","key":null},{"id":13,"type":"uploadbutton","props":{"label":"Upload Chat History","variant":"secondary","visible":true,"size":"md","interactive":true,"elem_classes":[],"type":"filepath","file_count":"single","file_types":["text"],"name":"uploadbutton","_selectable":false},"skip_api":false,"component_class_id":"f6b0801c17f2a4930a7e2f97a2a51e6c","key":null,"api_info":{"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.\
70n 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"},"example_inputs":{"path":"https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf","meta":{"_type":"gradio.FileData"},"orig_name":"sample_file.pdf","url":"https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf"}},{"id":14,"type":"form","props":{"scale":0,"min_width":0,"name":"form"},"skip_api":true,"component_class_id":"43cda85c6ff7a5dd8f83d29496b014ee","key":null}],"css":"\n.gradio-container{\n background-image: url(\u0027https://i.ibb.co/ZS6HrZX/st-mark-shield-light-very-transparent.png\u0027);\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center 50px;\n font-family: \u0027Arial\u0027, sans-serif;\n color: #FFFFFF; /* Default text color for dark mode */\n}\n.gradio-container::before {\n content: \"\";\n background-image: inherit; /* Inherit the background image from the parent */\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0.5; /* Adjust the opacity of the background image */\n z-index: -1; /* Place the pseudo-element behind the content */\n}\n\n.dark .gradio-container{\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center 50px;\n background-image: url(\u0027https://i.ibb.co/31P72PB/st-mark-shield-dark-light-large-transparent.png\u0027);\n color: #333; /* Default text color for light mode */\n font-family: \u0027Arial\u0027, sans-serif;\n }\n\n.gradio-container .gradio-chatbot {\n background-color: #e0f2f7; /* Light blue background */\n padding: 10px; /* Optional padding for spacing */\n border-radius: 10px; /* Maintain rounded corners */\n box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Softer shadow */\n}\n.gradio-textbox {\n border-radius: 8px;\n padding: 15px;\n}\n.gradio-button {\n border-radius: 8px;\n transition: background-color 0.3s ease;\n font-weight: bold;\n}\n.gradio-button:hover {\n background-color: #0056b3;\n}\n/* Light Mode Overrides (if needed) */\nfooter {\n display: none !important; /* Hide the footer */\n}\n\n.markdown-container {\n font-family: \u0027Arial\u0027, sans-serif;\n color: #212529; /* Text color for light background */\n padding: 20px; \n}\n\n/* Default light mode styling */\n.markdown-container::before {\n content: \u0027\u0027;\n background-image: url(\u0027https://i.ibb.co/4JQH3GW/St-Mark-Photo.png\u0027); /* Your light logo image URL */\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n top: 15px;\n left: 20px;\n width: 300px;\n height: 200px;\n z-index: 10;\n}\n\n.dark .markdown-container::before { /* Target elements within your custom \u0027dark\u0027 class */\n background-image: url(\u0027https://i.ibb.co/vc8RHw9/St-Mark-Dark.png\u0027); /* Your dark logo image URL */\n top: 20px;\n}\n\n/* Rest of your styles... */\n.markdown-container h2 {\n text-align: right;\n color: #13274F; /* Or adjust for dark mode */\n font-family: lucida, cursive, arial, serif; \n position: absolute;\n top: 0px;\n right: 20px;\n}\n\n.dark .markdown-container h2 {\n text-align: right;\n color: #FFF; /* Or adjust for dark mode */\n font-family: lucida, cursive, arial, serif; \n position: absolute;\n top: 0px;\n right: 20px;\n}\n\n.markdown-container p {\n text-align: center;\n}\n","connect_heartbeat":true,"js":null,"head":"\n\u003cscript defer src=\"https://cloud.umami.is/script.
70js\" data-website-id=\"28b59ada-b311-4b77-85ba-9243a591bac2\"\u003e\u003c/script\u003e\n","title":"Gradio","space_id":"StMarkSchool/StMarkFinancialAI","enable_queue":true,"show_error":false,"show_api":true,"is_colab":false,"max_file_size":null,"stylesheets":["https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600\u0026display=swap","https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600\u0026display=swap"],"theme":"monochrome","protocol":"sse_v3","body_css":{"body_background_fill":"white","body_text_color":"#111827","body_background_fill_dark":"grey","body_text_color_dark":"#f3f4f6"},"fill_height":true,"fill_width":false,"theme_hash":"56ed9ecb4800a07c502e3d9610b58763ddae1a05142e17927d065b0d23e671f5","layout":{"id":0,"children":[{"id":1},{"id":2},{"id":14,"children":[{"id":3}]},{"id":4},{"id":5,"children":[{"id":6},{"id":7}]},{"id":8,"children":[{"id":9,"children":[{"id":10},{"id":11,"children":[]},{"id":12},{"id":13}]}]}]},"dependencies":[{"id":0,"targets":[[7,"click"]],"inputs":[],"outputs":[3,2],"backend_fn":false,"js":"() =\u003e [null, []]","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":[[0,"load"],[2,"change"]],"inputs":[2],"outputs":[11],"backend_fn":true,"js":null,"queue":true,"api_name":"apply","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":false,"zerogpu":false,"rendered_in":null},{"id":2,"targets":[[10,"click"]],"inputs":[],"outputs":[],"backend_fn":true,"js":"\nfunction refresh() {\n const url = new URL(window.location);\n const body = document.body;\n if (body.classList.contains(\u0027dark\u0027)) {\n body.classList.remove(\u0027dark\u0027);\n body.classList.add(\u0027light\u0027); \n }\n else {\n body.classList.remove(\u0027light\u0027);\n body.classList.add(\u0027dark\u0027);\n }\n}\n","queue":true,"api_name":"toggle_theme","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":[[3,"submit"]],"inputs":[3,2,4],"outputs":[2,3,4],"backend_fn":true,"js":null,"queue":true,"api_name":"save_user_message","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":4,"targets":[[null,"then"]],"inputs":[3,2,4],"outputs":[3,2,4],"backend_fn":true,"js":null,"queue":true,"api_name":"get_response_gradio","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":3,"trigger_only_on_success":false,"trigger_mode":"once","show_api":true,"zerogpu":false,"rendered_in":null},{"id":5,"targets":[[6,"click"]],"inputs":[2,4],"outputs":[2,3,4],"backend_fn":true,"js":null,"queue":true,"api_name":"_retry_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":true,"zerogpu":false,"rendered_in":null},{"id":6,"targets":[[12,"click"]],"inputs":[3,2,4],"outputs":[3,2,4],"backend_fn":true,"js":null,"queue":true,"api_name":"get_common_response_gradio","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":7,"targets":[[13,"upload"]],"inputs":[13],"outputs":[3,2,4],"backend_fn":true,"js":null,"queue":true,"api_name":"upload_chat_history","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}],"root":"https://stmarkschool-stmarkfinancialai.hf.space","username":null};</script>
70<script>window.gradio_api_info = {"named_endpoints":{"/toggle_theme":{"parameters":[],"returns":[],"show_api":true},"/save_user_message":{"parameters":[{"label":"Enter Question","parameter_name":"message","parameter_has_default":false,"parameter_default":null,"type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"},{"label":"parameter_2","parameter_name":"history","parameter_has_default":true,"parameter_default":[],"type":{"$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"},"python_type":{"type":"Tuple[str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None, str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None]","description":""},"component":"Chatbot","example_input":[["Hello!",null]]}],"returns":[{"label":"value_2","type":{"$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"},"python_type":{"type":"Tuple[str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None, str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None]","description":""},"component":"Chatbot"},{"label":"Enter Question","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox"}],"show_api":true},"/get_response_gradio":{"parameters":[{"label":"Enter Question","parameter_name":"question","parameter_has_default":false,"parameter_default":null,"type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"},{"label":"parameter_2","parameter_name":"history","parameter_has_default":true,"parameter_default":[],"type":{"$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.\
70n 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"},"python_type":{"type":"Tuple[str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None, str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None]","description":""},"component":"Chatbot","example_input":[["Hello!",null]]}],"returns":[{"label":"Enter Question","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox"},{"label":"value_2","type":{"$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"},"python_type":{"type":"Tuple[str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None, str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None]","description":""},"component":"Chatbot"}],"show_api":true},"/_retry_fn":{"parameters":[{"label":"parameter_2","parameter_name":"chatbot","parameter_has_default":true,"parameter_default":[],"type":{"$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.\
70n 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"},"python_type":{"type":"Tuple[str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None, str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None]","description":""},"component":"Chatbot","example_input":[["Hello!",null]]}],"returns":[{"label":"value_2","type":{"$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"},"python_type":{"type":"Tuple[str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None, str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None]","description":""},"component":"Chatbot"},{"label":"Enter Question","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox"}],"show_api":true},"/get_common_response_gradio":{"parameters":[{"label":"Enter Question","parameter_name":"question","parameter_has_default":false,"parameter_default":null,"type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox","example_input":"Hello!!"},{"label":"parameter_2","parameter_name":"history","parameter_has_default":true,"parameter_default":[],"type":{"$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.\
70n 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"},"python_type":{"type":"Tuple[str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None, str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None]","description":""},"component":"Chatbot","example_input":[["Hello!",null]]}],"returns":[{"label":"Enter Question","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox"},{"label":"value_2","type":{"$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"},"python_type":{"type":"Tuple[str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None, str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None]","description":""},"component":"Chatbot"}],"show_api":true},"/upload_chat_history":{"parameters":[{"label":"Upload Chat History","parameter_name":"file","parameter_has_default":false,"parameter_default":null,"type":{"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.\
70n 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"},"python_type":{"type":"filepath","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)."},"component":"Uploadbutton","example_input":{"path":"https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf","meta":{"_type":"gradio.FileData"},"orig_name":"sample_file.pdf","url":"https://github.com/gradio-app/gradio/raw/main/test/test_files/sample_file.pdf"}}],"returns":[{"label":"Enter Question","type":{"type":"string"},"python_type":{"type":"str","description":""},"component":"Textbox"},{"label":"value_2","type":{"$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"},"python_type":{"type":"Tuple[str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None, str | Dict(file: filepath, alt_text: str | None) | Dict(component: str, value: Any, constructor_args: Dict(), props: Dict()) | None]","description":""},"component":"Chatbot"}],"show_api":true}},"unnamed_endpoints":{}};</script>
70 71 72 <link rel="preconnect" href="https://fonts.googleapis.com" /> 73 <link 74 rel="preconnect" 75 href="https://fonts.gstatic.com" 76 crossorigin="anonymous" 77 /> 78
78<script 79 src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js" 80 async 81 ></script>
81 82
82<script type="module" crossorigin src="./assets/index-BKm0EBOh.js"></script>
82 83 <link rel="stylesheet" crossorigin href="./assets/index-BLavTiqJ.css"> 84 </head> 85 86 <body 87 style=" 88 width: 100%; 89 margin: 0; 90 padding: 0; 91 display: flex; 92 flex-direction: column; 93 flex-grow: 1; 94 " 95 > 96 <gradio-app 97 control_page_title="true" 98 embed="false" 99 eager="true" 100 style="display: flex; flex-direction: column; flex-grow: 1" 101 > 102 </gradio-app> 103
103<script> 104 const ce = document.getElementsByTagName("gradio-app"); 105 106 if (ce[0]) { 107 ce[0].addEventListener("domchange", () => { 108 document.body.style.padding = "0"; 109 }); 110 document.body.style.padding = "0"; 111 } 112 </script>
112 113 </body> 114</html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.