Merge branch 'master' into dawood/chatbot-demo

This commit is contained in:
Abubakar Abid 2022-02-18 10:23:49 -05:00
commit c10c07d86a
8 changed files with 3 additions and 91 deletions

6
.gitignore vendored
View File

@ -11,11 +11,7 @@ __pycache__/
build/
# JS build
gradio/templates/frontend/static
gradio/templates/frontend/build
gradio/templates/frontend/assets
gradio/templates/frontend/global.css
gradio/templates/frontend
# Secrets
.env

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -1,57 +0,0 @@
<!DOCTYPE html>
<html lang="en" style="height: 100%; margin: 0; padding: 0">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>{{ config['title'] or 'Gradio' }}</title>
<meta property="og:url" content="https://gradio.app/" />
<meta property="og:type" content="website" />
<meta property="og:image" content="{{ config['thumbnail'] or '' }}" />
<meta property="og:title" content="{{ config['title'] or '' }}" />
<meta
property="og:description"
content="{{ config['simple_description'] or '' }}"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@teamGradio" />
<meta name="twitter:title" content="{{ config['title'] or '' }}" />
<meta
name="twitter:description"
content="{{ config['simple_description'] or '' }}"
/>
<meta name="twitter:image" content="{{ config['thumbnail'] or '' }}" />
{%if config['analytics_enabled'] %}
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-156449732-1"
></script>
{% endif %}
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-156449732-1");
window.gradio_mode = "app";
</script>
<script>
window.gradio_config = {{ config|tojson }};
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"></script>
<title>Gradio</title>
<script type="module" crossorigin src="/assets/index.f3d108ba.js"></script>
<link rel="modulepreload" href="/assets/vendor.c9d0e110.js">
<link rel="stylesheet" href="/assets/vendor.c31bc17e.css">
<link rel="stylesheet" href="/assets/index.7ba6fc59.css">
</head>
<body style="height: 100%; margin: 0; padding: 0">
<div id="root" style="min-height: 100%"></div>
</body>
</html>

View File

@ -1,14 +0,0 @@
{
"interface": {
"submit": "Submit",
"clear": "Clear",
"interpret": "Interpret",
"flag": "Flag",
"examples": "Examples",
"drop_image": "Drop Image Here",
"or": "or",
"click_to_upload": "Click to Upload",
"view_api": "view the api",
"built_with_Gradio": "built with gradio"
}
}

View File

@ -1,14 +0,0 @@
{
"interface": {
"submit": "Enviar",
"clear": "Limpiar",
"interpret": "Interpretar",
"flag": "Avisar",
"examples": "Ejemplos",
"drop_image": "Coloque la Imagen Aquí",
"or": "o",
"click_to_upload": "Haga Clic para Cargar",
"view_api": "Para ver la API",
"built_with_Gradio": "Construido con Gradio"
}
}

View File

@ -21,7 +21,7 @@
type Headers = Array<{ value: string; id: number }>;
function make_headers(_h: Array<string>): Headers {
if (_h.length === 0) {
if (!_h || _h.length === 0) {
return values[0].map((_, i) => {
const _id = ++id;
els[_id] = { cell: null, input: null };

View File

@ -11,6 +11,7 @@ export default defineConfig(({ mode }) => {
const production = mode === "production";
return {
base: "./",
build: {
outDir: "../../../gradio/templates/frontend"
},