Spaces:
Runtime error
Runtime error
delete app.py
Browse files
app.py
DELETED
|
@@ -1,33 +0,0 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
|
| 3 |
-
def generate(image, audio):
|
| 4 |
-
return "HF Space is running successfully!"
|
| 5 |
-
|
| 6 |
-
with gr.Blocks() as demo:
|
| 7 |
-
gr.Markdown("# Hallo2 HF Space")
|
| 8 |
-
|
| 9 |
-
```
|
| 10 |
-
image = gr.Image(
|
| 11 |
-
label="Upload Image",
|
| 12 |
-
type="filepath"
|
| 13 |
-
)
|
| 14 |
-
|
| 15 |
-
audio = gr.Audio(
|
| 16 |
-
label="Upload Audio",
|
| 17 |
-
type="filepath"
|
| 18 |
-
)
|
| 19 |
-
|
| 20 |
-
btn = gr.Button("Generate")
|
| 21 |
-
|
| 22 |
-
output = gr.Textbox(
|
| 23 |
-
label="Status"
|
| 24 |
-
)
|
| 25 |
-
|
| 26 |
-
btn.click(
|
| 27 |
-
fn=generate,
|
| 28 |
-
inputs=[image, audio],
|
| 29 |
-
outputs=output
|
| 30 |
-
)
|
| 31 |
-
```
|
| 32 |
-
|
| 33 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|