Spaces:
Runtime error
Runtime error
Commit
·
dc39457
1
Parent(s):
9be6a34
chore: Update SDK version to 4.36.1 and uncomment installation commands in app.py
Browse files- README.md +1 -1
- app.py +5 -5
- assets/css/custom.css +10 -8
- deps/smpl/smpl_models/smplh/mano_v1_2.zip +0 -3
- mGPT/models/base.py +1 -1
- requirements.txt +3 -4
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🏃
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
|
|
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: blue
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.36.1
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import os
|
| 2 |
-
os.system('pip install /home/user/app/pyrender')
|
| 3 |
-
os.system('pip install pyglet==1.4.0a1')
|
| 4 |
-
os.system('pip install triangle==20220202')
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
import torch
|
|
@@ -487,7 +487,7 @@ with gr.Blocks(css=customCSS) as demo:
|
|
| 487 |
container=False)
|
| 488 |
|
| 489 |
with gr.Row():
|
| 490 |
-
aud = gr.Audio(
|
| 491 |
label="Speak input",
|
| 492 |
type='filepath')
|
| 493 |
btn = gr.UploadButton("📁 Upload motion",
|
|
@@ -554,4 +554,4 @@ with gr.Blocks(css=customCSS) as demo:
|
|
| 554 |
chatbot.change(scroll_to_output=True)
|
| 555 |
|
| 556 |
if __name__ == "__main__":
|
| 557 |
-
demo.launch(debug=True)
|
|
|
|
| 1 |
import os
|
| 2 |
+
# os.system('pip install /home/user/app/pyrender')
|
| 3 |
+
# os.system('pip install pyglet==1.4.0a1')
|
| 4 |
+
# os.system('pip install triangle==20220202')
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
import torch
|
|
|
|
| 487 |
container=False)
|
| 488 |
|
| 489 |
with gr.Row():
|
| 490 |
+
aud = gr.Audio(sources=["microphone"],
|
| 491 |
label="Speak input",
|
| 492 |
type='filepath')
|
| 493 |
btn = gr.UploadButton("📁 Upload motion",
|
|
|
|
| 554 |
chatbot.change(scroll_to_output=True)
|
| 555 |
|
| 556 |
if __name__ == "__main__":
|
| 557 |
+
demo.launch(debug=True, allowed_paths=["."])
|
assets/css/custom.css
CHANGED
|
@@ -10,10 +10,11 @@
|
|
| 10 |
background-color: var(--chatbot-color-light) !important;
|
| 11 |
color: #000000 !important;
|
| 12 |
}
|
| 13 |
-
|
|
|
|
| 14 |
background-color: #ffffff !important;
|
| 15 |
}
|
| 16 |
-
[
|
| 17 |
background-color: #95ec69 !important;
|
| 18 |
}
|
| 19 |
|
|
@@ -22,11 +23,11 @@
|
|
| 22 |
background-color: var(--chatbot-color-dark) !important;
|
| 23 |
color: #ffffff !important;
|
| 24 |
}
|
| 25 |
-
.dark [
|
| 26 |
background-color: #2c2c2c !important;
|
| 27 |
}
|
| 28 |
|
| 29 |
-
.dark [
|
| 30 |
background-color: #26b561 !important;
|
| 31 |
}
|
| 32 |
|
|
@@ -46,15 +47,16 @@
|
|
| 46 |
line-height: var(--line-xl) !important; */
|
| 47 |
}
|
| 48 |
|
| 49 |
-
[
|
| 50 |
max-width: 70%;
|
| 51 |
width: auto !important;
|
| 52 |
-
border-bottom-
|
| 53 |
}
|
| 54 |
-
|
|
|
|
| 55 |
max-width: 70%;
|
| 56 |
width: auto !important;
|
| 57 |
-
border-bottom-
|
| 58 |
}
|
| 59 |
|
| 60 |
/* Text & Video */
|
|
|
|
| 10 |
background-color: var(--chatbot-color-light) !important;
|
| 11 |
color: #000000 !important;
|
| 12 |
}
|
| 13 |
+
|
| 14 |
+
[class*='message bot'] {
|
| 15 |
background-color: #ffffff !important;
|
| 16 |
}
|
| 17 |
+
[class*='message user'] {
|
| 18 |
background-color: #95ec69 !important;
|
| 19 |
}
|
| 20 |
|
|
|
|
| 23 |
background-color: var(--chatbot-color-dark) !important;
|
| 24 |
color: #ffffff !important;
|
| 25 |
}
|
| 26 |
+
.dark [class*='message bot'] {
|
| 27 |
background-color: #2c2c2c !important;
|
| 28 |
}
|
| 29 |
|
| 30 |
+
.dark [class*='message user'] {
|
| 31 |
background-color: #26b561 !important;
|
| 32 |
}
|
| 33 |
|
|
|
|
| 47 |
line-height: var(--line-xl) !important; */
|
| 48 |
}
|
| 49 |
|
| 50 |
+
[class*='message user'] {
|
| 51 |
max-width: 70%;
|
| 52 |
width: auto !important;
|
| 53 |
+
border-bottom-right-radius: 0 !important;
|
| 54 |
}
|
| 55 |
+
|
| 56 |
+
[class*='message bot'] {
|
| 57 |
max-width: 70%;
|
| 58 |
width: auto !important;
|
| 59 |
+
border-bottom-left-radius: 0 !important;
|
| 60 |
}
|
| 61 |
|
| 62 |
/* Text & Video */
|
deps/smpl/smpl_models/smplh/mano_v1_2.zip
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:50976831790ea9657d8110e0c94e50e90eaf35cd76169f0b27e5d32f3fcd951f
|
| 3 |
-
size 175200815
|
|
|
|
|
|
|
|
|
|
|
|
mGPT/models/base.py
CHANGED
|
@@ -6,7 +6,7 @@ from pathlib import Path
|
|
| 6 |
from pytorch_lightning import LightningModule
|
| 7 |
from os.path import join as pjoin
|
| 8 |
from collections import OrderedDict
|
| 9 |
-
from mGPT.metrics import BaseMetrics
|
| 10 |
from mGPT.config import get_obj_from_str
|
| 11 |
|
| 12 |
|
|
|
|
| 6 |
from pytorch_lightning import LightningModule
|
| 7 |
from os.path import join as pjoin
|
| 8 |
from collections import OrderedDict
|
| 9 |
+
# from mGPT.metrics import BaseMetrics
|
| 10 |
from mGPT.config import get_obj_from_str
|
| 11 |
|
| 12 |
|
requirements.txt
CHANGED
|
@@ -11,10 +11,10 @@ einops
|
|
| 11 |
wandb
|
| 12 |
rich
|
| 13 |
matplotlib
|
| 14 |
-
bert-score
|
| 15 |
-
nlg-metricverse
|
| 16 |
gdown
|
| 17 |
-
numpy==1.23.1
|
| 18 |
eventlet
|
| 19 |
|
| 20 |
# for visualization
|
|
@@ -34,4 +34,3 @@ more-itertools
|
|
| 34 |
natsort
|
| 35 |
moviepy
|
| 36 |
librosa
|
| 37 |
-
torch==2.0.0
|
|
|
|
| 11 |
wandb
|
| 12 |
rich
|
| 13 |
matplotlib
|
| 14 |
+
# bert-score
|
| 15 |
+
# nlg-metricverse
|
| 16 |
gdown
|
| 17 |
+
# numpy==1.23.1
|
| 18 |
eventlet
|
| 19 |
|
| 20 |
# for visualization
|
|
|
|
| 34 |
natsort
|
| 35 |
moviepy
|
| 36 |
librosa
|
|
|