Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ TASK_PROMPTS = {
|
|
| 51 |
}
|
| 52 |
|
| 53 |
|
| 54 |
-
@spaces.GPU(duration=
|
| 55 |
def analyze_emotion(
|
| 56 |
video,
|
| 57 |
task: str,
|
|
@@ -144,7 +144,7 @@ CSS = """
|
|
| 144 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 145 |
"""
|
| 146 |
|
| 147 |
-
with gr.Blocks(
|
| 148 |
gr.Markdown(
|
| 149 |
"""
|
| 150 |
# OneEmo: Unified Multimodal Reasoning for Emotion Perception
|
|
@@ -222,4 +222,4 @@ with gr.Blocks(css=CSS) as demo:
|
|
| 222 |
)
|
| 223 |
|
| 224 |
if __name__ == "__main__":
|
| 225 |
-
demo.launch(mcp_server=True, theme=gr.themes.Citrus())
|
|
|
|
| 51 |
}
|
| 52 |
|
| 53 |
|
| 54 |
+
@spaces.GPU(duration=60)
|
| 55 |
def analyze_emotion(
|
| 56 |
video,
|
| 57 |
task: str,
|
|
|
|
| 144 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 145 |
"""
|
| 146 |
|
| 147 |
+
with gr.Blocks() as demo:
|
| 148 |
gr.Markdown(
|
| 149 |
"""
|
| 150 |
# OneEmo: Unified Multimodal Reasoning for Emotion Perception
|
|
|
|
| 222 |
)
|
| 223 |
|
| 224 |
if __name__ == "__main__":
|
| 225 |
+
demo.launch(mcp_server=True, theme=gr.themes.Citrus(), css=CSS)
|