MSchell0129 commited on
Commit
72a6d90
·
1 Parent(s): 456dda0
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. speech_to_text.py +1 -1
Dockerfile CHANGED
@@ -3,4 +3,4 @@ WORKDIR /code
3
  COPY ./requirements.txt /code/requirements.txt
4
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
5
  COPY . .
6
- CMD ["speech_to_text.py"]
 
3
  COPY ./requirements.txt /code/requirements.txt
4
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
5
  COPY . .
6
+ CMD ["uvicorn","speech_to_text:app", "--host", "0.0.0.0", "--port", "7860"]
speech_to_text.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
  import os
5
 
6
 
7
-
8
  #need to make a change to be able to push
9
 
10
  #This is another alternative, but this block allows for the detection of the language and it also provides lowever-level access to the model
 
4
  import os
5
 
6
 
7
+ app = gr()
8
  #need to make a change to be able to push
9
 
10
  #This is another alternative, but this block allows for the detection of the language and it also provides lowever-level access to the model