Development changes and references
Theme options
theme="gradio/seafoam"
theme="earneleh/paris"
theme="xiaobaiyuan/theme_brief"
theme="finlaymacklon/boxy_violet"
theme="ysharma/steampunk"
theme="ParityError/Interstellar"
theme="ParityError/Interstellar"
Example
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
python -m venv .venv
Step 2: Enter into the virtual env
.venv\Scripts\activate
.\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
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
cd my_folder_name_or_path
Step 4: Generate the requirements.txt file
pip install pipreqs
pipreqs --force
Note
Using the force parameter overrides the existing file so be carefull
MK Docs
Host local
mkdocs serve
Generate static site
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.