jasleen02 commited on
Commit
6d09ff5
·
verified ·
1 Parent(s): df2c04a

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -27
index.html CHANGED
@@ -4,45 +4,21 @@
4
  <head>
5
  <meta charset="UTF-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>Gradio Lite Demo</title>
8
 
9
  <script
10
  type="module"
11
- crossorigin
12
- src="https://gradio-lite-previews.s3.amazonaws.com/PINNED_HF_HUB/dist/lite.js">
13
  </script>
14
 
15
  <link
16
  rel="stylesheet"
17
- href="https://gradio-lite-previews.s3.amazonaws.com/PINNED_HF_HUB/dist/lite.css">
18
-
19
- <style>
20
- html, body {
21
- min-height: 100%;
22
- margin: 0;
23
- padding: 0;
24
- }
25
-
26
- gradio-lite {
27
- display: block;
28
- min-height: 100%;
29
- }
30
- </style>
31
  </head>
32
 
33
  <body>
34
  <gradio-lite>
35
  <gradio-file name="app.py" entrypoint>
36
- import os
37
-
38
- # Compatibility workaround for Pyodide's os.link implementation.
39
- _original_link = os.link
40
-
41
- def _compatible_link(src, dst, *, follow_symlinks=True):
42
- return _original_link(src, dst)
43
-
44
- os.link = _compatible_link
45
-
46
  import gradio as gr
47
 
48
  def greet(name):
 
4
  <head>
5
  <meta charset="UTF-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>Translation App</title>
8
 
9
  <script
10
  type="module"
11
+ src="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.js">
 
12
  </script>
13
 
14
  <link
15
  rel="stylesheet"
16
+ href="https://cdn.jsdelivr.net/npm/@gradio/lite/dist/lite.css">
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  </head>
18
 
19
  <body>
20
  <gradio-lite>
21
  <gradio-file name="app.py" entrypoint>
 
 
 
 
 
 
 
 
 
 
22
  import gradio as gr
23
 
24
  def greet(name):