Skip to content

Development changes and references

Theme options

Python
theme="gradio/seafoam"
theme="earneleh/paris"
theme="xiaobaiyuan/theme_brief"
theme="finlaymacklon/boxy_violet"
theme="ysharma/steampunk"
theme="ParityError/Interstellar"
theme="ParityError/Interstellar"

Example

Python
scraper = gr.Interface(
    sentence_builder,
    [        
        gr.Dropdown(
            ["instagram"], label="Social Network"
        ),
        gr.Textbox(label="username"),
    ],
    "text",
    theme="finlaymacklon/boxy_violet"
)

Generate automatic requirements.txt

Step 0

Navigate to your project folder in terminal/console

Step 1

Bash Session
python -m venv .venv

Step 2: Enter into the virtual env

Bash Session
.venv\Scripts\activate
Bash Session
.\venv\Scripts\Activate.ps1

Tip

Both commands are the same, but somehow, in this case, the Visual Studio IDE is bit different. if you face script execution policy error run below command:

Remove restriction for script execution policy

Bash Session
Set-ExecutionPolicy Unrestricted -Scope Process

Note

Skip step 3 if you already there. In case of docs website project you need to change to docs folder.

Step 3: Navigate to your project folder

Bash Session
cd my_folder_name_or_path

Step 4: Generate the requirements.txt file

Python
pip install pipreqs
Bash Session
pipreqs --force

Note

Using the force parameter overrides the existing file so be carefull

MK Docs

Host local

Bash Session
mkdocs serve

Generate static site

Bash Session
mkdocs build

A folder with name 'site' will be created that you can deploy that on any website hosting platform. The website will be static so there is no need for any backend server.