husseinelsaadi commited on
Commit
227e456
·
1 Parent(s): 2ae57cb

Remove nested Codingo directory

Browse files
.huggingface/spaces.yml DELETED
@@ -1,4 +0,0 @@
1
- sdk: static
2
- app_file: app.py
3
- python_version: "3.10"
4
- hardware: gpu
 
 
 
 
 
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install OS dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg libsndfile1 libgl1 git curl && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
8
+ # Set working directory
9
+ WORKDIR /app
10
+
11
+ # Copy app code
12
+ COPY . /app
13
+
14
+ # Install Python dependencies
15
+ RUN pip install --upgrade pip
16
+ RUN pip install -r requirements.txt
17
+
18
+ # Expose port
19
+ EXPOSE 7860
20
+
21
+ # Start Flask app
22
+ CMD ["python", "app.py"]
backend/app.py CHANGED
@@ -179,4 +179,4 @@ if __name__ == '__main__':
179
  print("Starting Codingo application...")
180
  with app.app_context():
181
  db.create_all()
182
- app.run(debug=True, port=5001)
 
179
  print("Starting Codingo application...")
180
  with app.app_context():
181
  db.create_all()
182
+ app.run(debug=True, port=7860)
backend/templates/interview.html CHANGED
@@ -656,7 +656,7 @@
656
  formData.append('audio', audioBlob, 'recording.wav');
657
 
658
  try {
659
- const response = await fetch('/api/transcribe', {
660
  method: 'POST',
661
  body: formData
662
  });
 
656
  formData.append('audio', audioBlob, 'recording.wav');
657
 
658
  try {
659
+ const response = await fetch('/api/transcribe_audio', {
660
  method: 'POST',
661
  body: formData
662
  });
space.yaml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # space.yaml
2
+ title: Codingo - AI Interview System
3
+ sdk: docker
4
+ hardware: gpu
5
+ license: apache-2.0