Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import torch
|
|
2 |
import gradio as gr
|
3 |
|
4 |
import os
|
|
|
5 |
from PIL import Image
|
6 |
|
7 |
from transformers import TextStreamer
|
@@ -19,6 +20,8 @@ textbox = gr.Textbox(
|
|
19 |
with gr.Blocks(title = '' ) as demo:
|
20 |
gr.Markdown(title_markdown)
|
21 |
|
|
|
|
|
22 |
with gr.Blocks(title='MoE-LLaVA🚀')) as demo:
|
23 |
gr.Markdown(title_markdown)
|
24 |
state = gr.State()
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
import os
|
5 |
+
import spaces
|
6 |
from PIL import Image
|
7 |
|
8 |
from transformers import TextStreamer
|
|
|
20 |
with gr.Blocks(title = '' ) as demo:
|
21 |
gr.Markdown(title_markdown)
|
22 |
|
23 |
+
|
24 |
+
@spaces.GPU
|
25 |
with gr.Blocks(title='MoE-LLaVA🚀')) as demo:
|
26 |
gr.Markdown(title_markdown)
|
27 |
state = gr.State()
|