Spaces:
Running
on
Zero
Running
on
Zero
update readme
Browse files
README.md
CHANGED
|
@@ -3,7 +3,7 @@ title: OmniGen2
|
|
| 3 |
emoji: 👀
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: yellow
|
| 6 |
-
sdk:
|
| 7 |
pinned: false
|
| 8 |
license: apache-2.0
|
| 9 |
short_description: 'OmniGen2: Unified Image Understanding and Generation.'
|
|
|
|
| 3 |
emoji: 👀
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: yellow
|
| 6 |
+
sdk: gradio
|
| 7 |
pinned: false
|
| 8 |
license: apache-2.0
|
| 9 |
short_description: 'OmniGen2: Unified Image Understanding and Generation.'
|
app.py
CHANGED
|
@@ -2,6 +2,9 @@ import dotenv
|
|
| 2 |
|
| 3 |
dotenv.load_dotenv(override=True)
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
import gradio as gr
|
| 6 |
|
| 7 |
import os
|
|
|
|
| 2 |
|
| 3 |
dotenv.load_dotenv(override=True)
|
| 4 |
|
| 5 |
+
import subprocess
|
| 6 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
| 7 |
+
|
| 8 |
import gradio as gr
|
| 9 |
|
| 10 |
import os
|