Spaces:
Running
Running
Replace with static redirect page
Browse files- .gitignore +1 -0
- Dockerfile +0 -21
- README.md +3 -8
- index.html +42 -0
- main.py +0 -19
- requirements.txt +0 -1
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
.DS_Store
|
Dockerfile
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
FROM python:3.10
|
| 2 |
-
WORKDIR /code
|
| 3 |
-
COPY --link --chown=1000 . .
|
| 4 |
-
RUN mkdir -p /tmp/cache/
|
| 5 |
-
RUN chmod a+rwx -R /tmp/cache/
|
| 6 |
-
ENV HF_HUB_CACHE=HF_HOME
|
| 7 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
-
|
| 9 |
-
RUN useradd -m -u 1000 user
|
| 10 |
-
|
| 11 |
-
USER user
|
| 12 |
-
|
| 13 |
-
ENV HOME=/home/user \
|
| 14 |
-
PATH=/home/user/.local/bin:$PATH
|
| 15 |
-
|
| 16 |
-
WORKDIR $HOME/app
|
| 17 |
-
|
| 18 |
-
COPY --chown=user . $HOME/app
|
| 19 |
-
|
| 20 |
-
ENV PYTHONUNBUFFERED=1 PORT=7860
|
| 21 |
-
CMD ["python", "main.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
|
@@ -1,12 +1,7 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
colorFrom: indigo
|
| 5 |
-
colorTo: pink
|
| 6 |
-
sdk: gradio
|
| 7 |
-
sdk_version: 5.5.0
|
| 8 |
-
app_file: main.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
title: PBS Biologics Helper
|
| 3 |
+
sdk: static
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
pinned: false
|
| 5 |
---
|
| 6 |
|
| 7 |
+
# PBS Biologics Helper
|
index.html
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
+
<title>PBS Biologics Helper</title>
|
| 7 |
+
<style>
|
| 8 |
+
:root {
|
| 9 |
+
color-scheme: light;
|
| 10 |
+
font-family: Arial, Helvetica, sans-serif;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
body {
|
| 14 |
+
align-items: center;
|
| 15 |
+
background: #ffffff;
|
| 16 |
+
color: #111827;
|
| 17 |
+
display: flex;
|
| 18 |
+
justify-content: center;
|
| 19 |
+
margin: 0;
|
| 20 |
+
min-height: 100vh;
|
| 21 |
+
padding: 24px;
|
| 22 |
+
text-align: center;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
main {
|
| 26 |
+
font-size: clamp(1.25rem, 4vw, 2rem);
|
| 27 |
+
line-height: 1.4;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
a {
|
| 31 |
+
color: #0f766e;
|
| 32 |
+
text-decoration: underline;
|
| 33 |
+
}
|
| 34 |
+
</style>
|
| 35 |
+
</head>
|
| 36 |
+
<body>
|
| 37 |
+
<main>
|
| 38 |
+
New page can be found at
|
| 39 |
+
<a href="https://www.rheumbiologics.com">www.rheumbiologics.com</a>
|
| 40 |
+
</main>
|
| 41 |
+
</body>
|
| 42 |
+
</html>
|
main.py
DELETED
|
@@ -1,19 +0,0 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
|
| 3 |
-
html = """
|
| 4 |
-
<div style="display:flex;justify-content:center;align-items:center;height:80vh;font-family:Arial,sans-serif;">
|
| 5 |
-
<div style="text-align:center;">
|
| 6 |
-
<h1>New page can be found at</h1>
|
| 7 |
-
<h2>
|
| 8 |
-
<a href="https://www.rheumbiologics.com" target="_blank">
|
| 9 |
-
www.rheumbiologics.com
|
| 10 |
-
</a>
|
| 11 |
-
</h2>
|
| 12 |
-
</div>
|
| 13 |
-
</div>
|
| 14 |
-
"""
|
| 15 |
-
|
| 16 |
-
with gr.Blocks(title="Rheum Biologics") as demo:
|
| 17 |
-
gr.HTML(html)
|
| 18 |
-
|
| 19 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requirements.txt
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
gradio
|
|
|
|
|
|