Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,15 +31,15 @@ colors.steel_blue = colors.Color(
|
|
| 31 |
name="steel_blue",
|
| 32 |
c50="#EBF3F8",
|
| 33 |
c100="#D3E5F0",
|
| 34 |
-
c200="#
|
| 35 |
-
c300="#
|
| 36 |
-
c400="#
|
| 37 |
-
c500="#
|
| 38 |
-
c600="#
|
| 39 |
-
c700="#
|
| 40 |
-
c800="#
|
| 41 |
-
c900="#
|
| 42 |
-
c950="#
|
| 43 |
)
|
| 44 |
|
| 45 |
class SteelBlueTheme(Soft):
|
|
@@ -202,14 +202,14 @@ def generate_image(model_name: str, text: str, image: Image.Image,
|
|
| 202 |
|
| 203 |
# Define examples for image inference
|
| 204 |
image_examples = [
|
| 205 |
-
["Extract the full page.", "images/
|
| 206 |
["Extract the content.", "images/4.png"],
|
| 207 |
-
["Convert this page to doc [table] precisely for markdown.", "images/0.
|
| 208 |
]
|
| 209 |
|
| 210 |
|
| 211 |
# Create the Gradio Interface
|
| 212 |
-
with gr.Blocks(css=css, theme=
|
| 213 |
gr.Markdown("# **Angel's Eye - Copilot**", elem_id="main-title")
|
| 214 |
with gr.Row():
|
| 215 |
with gr.Column(scale=2):
|
|
|
|
| 31 |
name="steel_blue",
|
| 32 |
c50="#EBF3F8",
|
| 33 |
c100="#D3E5F0",
|
| 34 |
+
c200="#E1A8C4",
|
| 35 |
+
c300="#D27D99",
|
| 36 |
+
c400="#C35294",
|
| 37 |
+
c500="#B44679", # SteelBlue base color
|
| 38 |
+
c600="#A03E74",
|
| 39 |
+
c700="#8C365E",
|
| 40 |
+
c800="#782E57",
|
| 41 |
+
c900="#64263E",
|
| 42 |
+
c950="#501E33",
|
| 43 |
)
|
| 44 |
|
| 45 |
class SteelBlueTheme(Soft):
|
|
|
|
| 202 |
|
| 203 |
# Define examples for image inference
|
| 204 |
image_examples = [
|
| 205 |
+
["Extract the full page.", "images/3.jpg"],
|
| 206 |
["Extract the content.", "images/4.png"],
|
| 207 |
+
["Convert this page to doc [table] precisely for markdown.", "images/0.jpg"]
|
| 208 |
]
|
| 209 |
|
| 210 |
|
| 211 |
# Create the Gradio Interface
|
| 212 |
+
with gr.Blocks(css=css, theme=gr.themes.Dark()) as demo:
|
| 213 |
gr.Markdown("# **Angel's Eye - Copilot**", elem_id="main-title")
|
| 214 |
with gr.Row():
|
| 215 |
with gr.Column(scale=2):
|