Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,11 +5,9 @@ import json
|
|
| 5 |
import time
|
| 6 |
import asyncio
|
| 7 |
from threading import Thread
|
| 8 |
-
# --- Thêm từ Script 1 ---
|
| 9 |
from io import BytesIO
|
| 10 |
from typing import Optional, Tuple, Dict, Any, Iterable
|
| 11 |
-
import fitz
|
| 12 |
-
# --- Kết thúc thêm ---
|
| 13 |
import gradio as gr
|
| 14 |
import spaces
|
| 15 |
import torch
|
|
@@ -27,7 +25,6 @@ from transformers.image_utils import load_image
|
|
| 27 |
from gradio.themes import Soft
|
| 28 |
from gradio.themes.utils import colors, fonts, sizes
|
| 29 |
|
| 30 |
-
# --- Theme and CSS Definition (Từ Script 2) ---
|
| 31 |
colors.steel_blue = colors.Color(
|
| 32 |
name="steel_blue",
|
| 33 |
c50="#EBF3F8",
|
|
|
|
| 5 |
import time
|
| 6 |
import asyncio
|
| 7 |
from threading import Thread
|
|
|
|
| 8 |
from io import BytesIO
|
| 9 |
from typing import Optional, Tuple, Dict, Any, Iterable
|
| 10 |
+
import fitz
|
|
|
|
| 11 |
import gradio as gr
|
| 12 |
import spaces
|
| 13 |
import torch
|
|
|
|
| 25 |
from gradio.themes import Soft
|
| 26 |
from gradio.themes.utils import colors, fonts, sizes
|
| 27 |
|
|
|
|
| 28 |
colors.steel_blue = colors.Color(
|
| 29 |
name="steel_blue",
|
| 30 |
c50="#EBF3F8",
|