File size: 1,289 Bytes
386728e
b3d58ff
 
386728e
 
 
b3d58ff
386728e
b3d58ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
title: lighthouse
app_file: lighthouse.py
sdk: gradio
sdk_version: 5.47.0
---
# Lighthouse Application

There are two versions of this application - a standalone Python application, and a version running in a notebook.
- lighthouse.ipynb - Jupyter Notebook version
- lighthouse.py - Python version
- lighthouses.json - Used for local storage by the lighthouse application. Should be empty to start.

Gradio, an accessible library for visualising machine learning processes developed by HuggingFace, is used as a way to provide a basic interface.
You should not need to develop a complex understanding of this library for this assignment, but the documentation is available here: [Gradio Docs](https://www.gradio.app/docs)

By default, the jupyter notebook environment runs version [3.11.7 of Python](https://www.python.org/downloads/release/python-3117/) - you should not run into problems with other versions of Python, but be aware that different versions of Python and different interpreters have their own functionalities.

## To run this app in a notebook:
1. Run the bash cell to install the gradio library. You should only need to do this once.

## To run this app locally:
1. In your terminal, install Gradio: pip install gradio
2. Run from your terminal: python lighthouse.py