Spaces:
BAAI
/
Runtime error

ryanzhangfan commited on
Commit
a63b283
1 Parent(s): 887782d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  from PIL import Image
2
  import gradio as gr
3
  from transformers import (
@@ -16,7 +19,7 @@ import torch
16
  from emu3.mllm.processing_emu3 import Emu3Processor
17
  import spaces
18
 
19
- import subprocess
20
  # Install flash attention, skipping CUDA build if necessary
21
  subprocess.run(
22
  "pip install flash-attn --no-build-isolation",
 
1
+ import subprocess
2
+ subprocess.run("pip install gradio==4.40.0", shell=True)
3
+
4
  from PIL import Image
5
  import gradio as gr
6
  from transformers import (
 
19
  from emu3.mllm.processing_emu3 import Emu3Processor
20
  import spaces
21
 
22
+
23
  # Install flash attention, skipping CUDA build if necessary
24
  subprocess.run(
25
  "pip install flash-attn --no-build-isolation",