Spaces:
Running
Running
Update app.py
#19
by
Duskfallcrew
- opened
app.py
CHANGED
|
@@ -15,7 +15,7 @@ import hashlib
|
|
| 15 |
from datetime import datetime
|
| 16 |
from typing import Dict, List, Optional
|
| 17 |
from huggingface_hub import login, HfApi, hf_hub_download
|
| 18 |
-
from huggingface_hub.utils import validate_repo_id, HFValidationError
|
| 19 |
from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE
|
| 20 |
from huggingface_hub.utils import HfHubHTTPError
|
| 21 |
|
|
@@ -294,8 +294,6 @@ css = """
|
|
| 294 |
#main-container {
|
| 295 |
display: flex;
|
| 296 |
flex-direction: column;
|
| 297 |
-
/* Removed height: 100vh; */
|
| 298 |
-
/* Removed justify-content: space-between; */
|
| 299 |
font-family: 'Arial', sans-serif;
|
| 300 |
font-size: 16px;
|
| 301 |
color: #333;
|
|
@@ -364,7 +362,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 364 |
with gr.Column():
|
| 365 |
output = gr.Markdown() #Output is in its own column
|
| 366 |
|
| 367 |
-
convert_button.click(
|
| 368 |
fn=main,
|
| 369 |
inputs=[
|
| 370 |
model_to_load,
|
|
|
|
| 15 |
from datetime import datetime
|
| 16 |
from typing import Dict, List, Optional
|
| 17 |
from huggingface_hub import login, HfApi, hf_hub_download
|
| 18 |
+
from huggingface_hub.utils import validate_repo_id, HFValidationError
|
| 19 |
from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE
|
| 20 |
from huggingface_hub.utils import HfHubHTTPError
|
| 21 |
|
|
|
|
| 294 |
#main-container {
|
| 295 |
display: flex;
|
| 296 |
flex-direction: column;
|
|
|
|
|
|
|
| 297 |
font-family: 'Arial', sans-serif;
|
| 298 |
font-size: 16px;
|
| 299 |
color: #333;
|
|
|
|
| 362 |
with gr.Column():
|
| 363 |
output = gr.Markdown() #Output is in its own column
|
| 364 |
|
| 365 |
+
convert_button.click( #CORRECT AREA
|
| 366 |
fn=main,
|
| 367 |
inputs=[
|
| 368 |
model_to_load,
|