Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,8 +15,7 @@ HF_TOKEN = os.environ.get("HF_TOKEN") if os.environ.get("HF_TOKEN") else None #
|
|
| 15 |
|
| 16 |
def get_current_time():
|
| 17 |
now = datetime.now()
|
| 18 |
-
|
| 19 |
-
current_time = now2.strftime("%y-%m-%d %H:%M:%S")
|
| 20 |
return current_time
|
| 21 |
|
| 22 |
def load_fn(models):
|
|
@@ -196,7 +195,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
| 196 |
with gr.Column(scale=1):
|
| 197 |
with gr.Group():
|
| 198 |
with gr.Row():
|
| 199 |
-
output = [gr.Image(label=m, show_download_button=True, elem_classes="image-monitor",
|
| 200 |
interactive=False, width=112, height=112, show_share_button=False, format="png",
|
| 201 |
visible=True) for m in default_models]
|
| 202 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|
|
|
|
| 15 |
|
| 16 |
def get_current_time():
|
| 17 |
now = datetime.now()
|
| 18 |
+
current_time = now.strftime("%y-%m-%d %H:%M:%S")
|
|
|
|
| 19 |
return current_time
|
| 20 |
|
| 21 |
def load_fn(models):
|
|
|
|
| 195 |
with gr.Column(scale=1):
|
| 196 |
with gr.Group():
|
| 197 |
with gr.Row():
|
| 198 |
+
output = [gr.Image(label=m, show_download_button=True, elem_classes=["image-monitor"],
|
| 199 |
interactive=False, width=112, height=112, show_share_button=False, format="png",
|
| 200 |
visible=True) for m in default_models]
|
| 201 |
current_models = [gr.Textbox(m, visible=False) for m in default_models]
|