skip to Main Content

Visual Studio Code – Can't open file 'C:\Users\H\Downloads\Hossein-OH\VSCODE\main.py': [Errno 2] No such file or directory

I got this error today; previously I didn't get that. My python file is in "C:UsersHDownloadsHossein-OHVSCODEPYTHON APImain.py" and this is the documentation👇👇👇 from flask import Flask, Request, jsonify app = Flask(__name__) @app.route("/") def home(): return "Home" if __name__ == "__main__":…

VIEW QUESTION

Javascript – Learning FLask: Stuck at OpenAI api

from flask import Flask, request, jsonify, send_from_directory import openai from openai import OpenAI import os app = Flask(__name__) openai.api_key = 'sk-' # I added my key here. @app.route('/') def index(): return send_from_directory('.', 'index.html') @app.route('/analyze', methods=['POST']) def analyze_cv(): if 'cv' not…

VIEW QUESTION
Back To Top
Search