Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixingstuff2 ryan #56

Merged
merged 8 commits into from
Dec 4, 2023
2 changes: 1 addition & 1 deletion machine-learning-client/machine_learning_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
## python3 machine_learning_client.py

client = MongoClient("mongodb://mongodb:27017/")
db = client["ml_databse"]
db = client["ml_database"]
collection = db["transcription"]


Expand Down
4 changes: 2 additions & 2 deletions web-app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
app = Flask(__name__, template_folder="templates")

# Connect to MongoDB
client = MongoClient("mongodb://localhost:27017/")
client = MongoClient("mongodb://mongodb:27017/")
db = client["ml_database"]
collection = db["transcription"]

Expand Down Expand Up @@ -57,7 +57,7 @@ def analyze_data():
return jsonify({"status": "error", "message": "No audio file provided"})

audio_file = request.files["audio"]
ml_client_url = "http://127.0.0.1:5001/analyzeAudio"
ml_client_url = "http://backend:5001/analyzeAudio"
# Use the converted audio file
response = requests.post(
ml_client_url, files={"audio": audio_file}, timeout=100
Expand Down
Loading