This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SECRET_KEY = "YOUR API KEY"; | |
const MAX_TOKENS = 3000; | |
const TEMPERATURE = 0.9; | |
function EMAILALUNO(aluno, nota) { | |
const url = "https://api.openai.com/v1/chat/completions"; | |
const payload = { | |
model: 'gpt-3.5-turbo', | |
messages: [ | |
{ role: "system", content: "Crie um parágrafo de incentivo para um aluno que recebeu uma nota na prova. Vou passar o nome do aluno e a nota." }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# No more "Untitled12-final-final.ipynb"! | |
# A python script that ingests Jupyter Notebook cells and comes up with 10 relevant names to give it. | |
import nbformat | |
import openai | |
import argparse | |
def extract_cell_contents(notebook_path): | |
with open(notebook_path, "r", encoding="utf-8") as f: | |
notebook = nbformat.read(f, nbformat.NO_CONVERT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Autores: | |
Tiago Henrique da Cruz Pereira | |
João Felipe de Moraes Borges | |
""" | |
import threading | |
import time | |
import os | |
from urllib.request import urlopen |