Spaces:
Runtime error
Runtime error
Commit
·
7ec4f08
1
Parent(s):
e880420
test api name
Browse files
app.py
CHANGED
|
@@ -76,15 +76,6 @@ def update_slider(choice: str) -> dict:
|
|
| 76 |
def set_example_image(example: list) -> dict:
|
| 77 |
return gr.Image.update(value=example[0])
|
| 78 |
|
| 79 |
-
def greet(name):
|
| 80 |
-
return "Hello " + name + "!"
|
| 81 |
-
|
| 82 |
-
with gr.Blocks() as demo:
|
| 83 |
-
name = gr.Textbox(label="Name")
|
| 84 |
-
output = gr.Textbox(label="Output Box")
|
| 85 |
-
greet_btn = gr.Button("Greet")
|
| 86 |
-
greet_btn.click(fn=greet, inputs=name, outputs=output)
|
| 87 |
-
|
| 88 |
def set_example_video(example: list) -> dict:
|
| 89 |
return gr.Video.update(value=example[0]),
|
| 90 |
|
|
@@ -289,10 +280,10 @@ def main():
|
|
| 289 |
outputs=example_images.components)
|
| 290 |
|
| 291 |
demo.launch(
|
|
|
|
| 292 |
enable_queue=args.enable_queue,
|
| 293 |
server_port=args.port,
|
| 294 |
share=args.share,
|
| 295 |
-
show_api=True
|
| 296 |
)
|
| 297 |
|
| 298 |
|
|
|
|
| 76 |
def set_example_image(example: list) -> dict:
|
| 77 |
return gr.Image.update(value=example[0])
|
| 78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
def set_example_video(example: list) -> dict:
|
| 80 |
return gr.Video.update(value=example[0]),
|
| 81 |
|
|
|
|
| 280 |
outputs=example_images.components)
|
| 281 |
|
| 282 |
demo.launch(
|
| 283 |
+
api_name="bok",
|
| 284 |
enable_queue=args.enable_queue,
|
| 285 |
server_port=args.port,
|
| 286 |
share=args.share,
|
|
|
|
| 287 |
)
|
| 288 |
|
| 289 |
|