Upload folder using huggingface_hub
Browse files- Dockerfile +1 -1
- demo.yaml +7 -9
- requirements.txt +2 -4
Dockerfile
CHANGED
|
@@ -20,4 +20,4 @@ WORKDIR $HOME/app
|
|
| 20 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 21 |
COPY --chown=user . $HOME/app
|
| 22 |
|
| 23 |
-
|
|
|
|
| 20 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 21 |
COPY --chown=user . $HOME/app
|
| 22 |
|
| 23 |
+
CMD ["lite", "demo.yaml", "launch", "--server_name", "0.0.0.0", "--server_port", "7860"]
|
demo.yaml
CHANGED
|
@@ -4,27 +4,25 @@ lite_metadata:
|
|
| 4 |
class_string: gradio.interface.Interface
|
| 5 |
kwargs:
|
| 6 |
title: Gradio Webapp
|
| 7 |
-
description:
|
| 8 |
article: null
|
| 9 |
thumbnail: null
|
| 10 |
theme: gradio/seafoam
|
| 11 |
css: null
|
| 12 |
allow_flagging: never
|
| 13 |
inputs:
|
| 14 |
-
- class_string: gradio.components.
|
| 15 |
kwargs:
|
| 16 |
-
label:
|
| 17 |
-
type: array
|
| 18 |
outputs:
|
| 19 |
-
- class_string: gradio.components.
|
| 20 |
kwargs:
|
| 21 |
label: output
|
| 22 |
-
type: array
|
| 23 |
fn:
|
| 24 |
class_string: gradify.gradify_closure
|
| 25 |
kwargs:
|
| 26 |
argmaps:
|
| 27 |
-
- label:
|
| 28 |
-
postprocessing:
|
| 29 |
func_kwargs: {}
|
| 30 |
-
source: "def
|
|
|
|
| 4 |
class_string: gradio.interface.Interface
|
| 5 |
kwargs:
|
| 6 |
title: Gradio Webapp
|
| 7 |
+
description: Transcribe a recording of a meeting into a text summary
|
| 8 |
article: null
|
| 9 |
thumbnail: null
|
| 10 |
theme: gradio/seafoam
|
| 11 |
css: null
|
| 12 |
allow_flagging: never
|
| 13 |
inputs:
|
| 14 |
+
- class_string: gradio.components.Textbox
|
| 15 |
kwargs:
|
| 16 |
+
label: recording
|
|
|
|
| 17 |
outputs:
|
| 18 |
+
- class_string: gradio.components.Textbox
|
| 19 |
kwargs:
|
| 20 |
label: output
|
|
|
|
| 21 |
fn:
|
| 22 |
class_string: gradify.gradify_closure
|
| 23 |
kwargs:
|
| 24 |
argmaps:
|
| 25 |
+
- label: recording
|
| 26 |
+
postprocessing: null
|
| 27 |
func_kwargs: {}
|
| 28 |
+
source: "def transcribe_meeting(recording):\n return summary\n"
|
requirements.txt
CHANGED
|
@@ -1,4 +1,2 @@
|
|
| 1 |
-
gradio==3.
|
| 2 |
-
|
| 3 |
-
duckdb>=0.8.0
|
| 4 |
-
datasets
|
|
|
|
| 1 |
+
gradio==3.32
|
| 2 |
+
liteobj==0.0.7
|
|
|
|
|
|