Spaces:
Runtime error
Runtime error
removed html
Browse files
app.py
CHANGED
|
@@ -26,13 +26,6 @@ transform = transforms.Compose([
|
|
| 26 |
transforms.Resize((512, 512)),
|
| 27 |
])
|
| 28 |
|
| 29 |
-
def read_content(file_path: str) -> str:
|
| 30 |
-
"""read the content of target file
|
| 31 |
-
"""
|
| 32 |
-
with open(file_path, 'r', encoding='utf-8') as f:
|
| 33 |
-
content = f.read()
|
| 34 |
-
|
| 35 |
-
return content
|
| 36 |
|
| 37 |
def predict(dict, prompt=""):
|
| 38 |
init_image = dict["image"].convert("RGB").resize((512, 512))
|
|
@@ -48,7 +41,6 @@ def predict(dict, prompt=""):
|
|
| 48 |
|
| 49 |
image_blocks = gr.Blocks()
|
| 50 |
with image_blocks as demo:
|
| 51 |
-
gr.HTML(read_content("header.html"))
|
| 52 |
with gr.Group():
|
| 53 |
with gr.Box():
|
| 54 |
with gr.Row():
|
|
|
|
| 26 |
transforms.Resize((512, 512)),
|
| 27 |
])
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
def predict(dict, prompt=""):
|
| 31 |
init_image = dict["image"].convert("RGB").resize((512, 512))
|
|
|
|
| 41 |
|
| 42 |
image_blocks = gr.Blocks()
|
| 43 |
with image_blocks as demo:
|
|
|
|
| 44 |
with gr.Group():
|
| 45 |
with gr.Box():
|
| 46 |
with gr.Row():
|