Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import gradio as gr
|
2 |
-
from transformers import AutoProcessor, AutoModelForVision2Seq, TextIteratorStreamer
|
3 |
from threading import Thread
|
4 |
import time
|
5 |
from PIL import Image
|
@@ -7,7 +6,11 @@ import torch
|
|
7 |
import spaces
|
8 |
import cv2
|
9 |
import numpy as np
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
# Helper function to return a progress bar HTML snippet.
|
12 |
def progress_bar_html(label: str) -> str:
|
13 |
return f'''
|
|
|
1 |
import gradio as gr
|
|
|
2 |
from threading import Thread
|
3 |
import time
|
4 |
from PIL import Image
|
|
|
6 |
import spaces
|
7 |
import cv2
|
8 |
import numpy as np
|
9 |
+
from transformers import (
|
10 |
+
AutoProcessor,
|
11 |
+
AutoModelForVision2Seq,
|
12 |
+
TextIteratorStreamer
|
13 |
+
)
|
14 |
# Helper function to return a progress bar HTML snippet.
|
15 |
def progress_bar_html(label: str) -> str:
|
16 |
return f'''
|