multimodalart HF Staff commited on
Commit
2469bd0
·
verified ·
1 Parent(s): a8292c4

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -51,7 +51,7 @@ TASK_PROMPTS = {
51
  }
52
 
53
 
54
- @spaces.GPU(duration=120)
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(css=CSS) as demo:
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)