Spaces:
Running
Running
Srinivasulu kethanaboina
commited on
Update index.html
Browse files- index.html +6 -46
index.html
CHANGED
@@ -1,47 +1,7 @@
|
|
1 |
-
|
2 |
-
<html lang="en">
|
3 |
-
<head>
|
4 |
-
<meta charset="UTF-8">
|
5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>Embedded App</title>
|
7 |
-
<style>
|
8 |
-
body {
|
9 |
-
margin: 0;
|
10 |
-
padding: 0;
|
11 |
-
display: flex;
|
12 |
-
justify-content: center;
|
13 |
-
align-items: center;
|
14 |
-
height: 100vh;
|
15 |
-
background-color: #f0f0f0;
|
16 |
-
position: relative;
|
17 |
-
}
|
18 |
-
iframe {
|
19 |
-
border: none;
|
20 |
-
width: 100%;
|
21 |
-
height: 100%;
|
22 |
-
}
|
23 |
-
.close-button {
|
24 |
-
position: absolute;
|
25 |
-
top: 10px;
|
26 |
-
right: 10px;
|
27 |
-
background-color: #ff0000;
|
28 |
-
color: white;
|
29 |
-
border: none;
|
30 |
-
padding: 10px;
|
31 |
-
cursor: pointer;
|
32 |
-
border-radius: 5px;
|
33 |
-
}
|
34 |
-
</style>
|
35 |
-
</head>
|
36 |
-
<body>
|
37 |
-
<button class="close-button" onclick="closeIframe()">Close</button>
|
38 |
-
<iframe src="https://srinukethanaboina-srunu.hf.space" title="Embedded App"></iframe>
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
</script>
|
46 |
-
</body>
|
47 |
-
</html>
|
|
|
1 |
+
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
def get_ip_address(request):
|
4 |
+
return request.client.host
|
5 |
+
|
6 |
+
iface = gr.Interface(fn=get_ip_address, inputs="text", outputs="text")
|
7 |
+
iface.launch()
|
|
|
|
|
|