Week4 exercise bootcamp feb2026 ibrahim sheriff#1
Open
Sheriff10 wants to merge 2 commits into
Open
Conversation
hopeogbons
reviewed
Mar 20, 2026
Comment on lines
+61
to
+69
| "outputs": [ | ||
| { | ||
| "name": "stdout", | ||
| "output_type": "stream", | ||
| "text": [ | ||
| "OpenRouter API Key exists and begins sk-or-v1\n" | ||
| ] | ||
| } | ||
| ], |
Collaborator
There was a problem hiding this comment.
Suggested change
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| "OpenRouter API Key exists and begins sk-or-v1\n" | |
| ] | |
| } | |
| ], | |
| "outputs": [], |
hopeogbons
reviewed
Mar 20, 2026
Comment on lines
+429
to
+458
| "outputs": [ | ||
| { | ||
| "name": "stdout", | ||
| "output_type": "stream", | ||
| "text": [ | ||
| "* Running on local URL: http://127.0.0.1:7864\n", | ||
| "* To create a public link, set `share=True` in `launch()`.\n" | ||
| ] | ||
| }, | ||
| { | ||
| "data": { | ||
| "text/html": [ | ||
| "<div><iframe src=\"http://127.0.0.1:7864/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>" | ||
| ], | ||
| "text/plain": [ | ||
| "<IPython.core.display.HTML object>" | ||
| ] | ||
| }, | ||
| "metadata": {}, | ||
| "output_type": "display_data" | ||
| }, | ||
| { | ||
| "data": { | ||
| "text/plain": [] | ||
| }, | ||
| "execution_count": 42, | ||
| "metadata": {}, | ||
| "output_type": "execute_result" | ||
| } | ||
| ], |
Collaborator
There was a problem hiding this comment.
Suggested change
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| "* Running on local URL: http://127.0.0.1:7864\n", | |
| "* To create a public link, set `share=True` in `launch()`.\n" | |
| ] | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<div><iframe src=\"http://127.0.0.1:7864/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>" | |
| ], | |
| "text/plain": [ | |
| "<IPython.core.display.HTML object>" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/plain": [] | |
| }, | |
| "execution_count": 42, | |
| "metadata": {}, | |
| "output_type": "execute_result" | |
| } | |
| ], | |
| "outputs": [], |
Collaborator
|
Hey @Sheriff10 kindly resolve the suggestions above. #LGTM 👍 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Week 4: Code gen and unit-test AI
What it is
A Gradio app (launched from the notebook) that uses a frontier LLM via OpenRouter to:
Notebook:
week4/python_to_typescript.ipynb.Setup
API key: Put your OpenRouter API key in a
.envfile in the repo root:Get a key at openrouter.ai.
Dependencies: From the repo root run:
Or install:
python-dotenv,openai,gradio.How to run
week4/python_to_typescript.ipynb.http://127.0.0.1:7860) in your browser.Optional: Run TypeScript in the app
The Run TypeScript button uses
npx tsx(ornpx ts-node). You need:npx tsx(recommended, no global install),npm i -g ts-node.If neither is available, the app will show an install message.