gradio_project
Verschillen
Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.
Beide kanten vorige revisieVorige revisieVolgende revisie | Vorige revisie | ||
gradio_project [2023/09/17 15:54] – [Virtuele omgeving vanuit VS Code] a3dijke | gradio_project [2023/09/17 22:41] (huidige) – a3dijke | ||
---|---|---|---|
Regel 1: | Regel 1: | ||
====== Gradio project (1) ====== | ====== Gradio project (1) ====== | ||
+ | === Gradio project (1) === | ||
+ | |||
<= [[gradio|Terug naar Gradio Start]] | <= [[gradio|Terug naar Gradio Start]] | ||
Regel 5: | Regel 7: | ||
===== Virtuele omgeving vanuit VS Code ===== | ===== Virtuele omgeving vanuit VS Code ===== | ||
+ | |||
Een Virtuele omgeving creëren vanuit VS Code | Een Virtuele omgeving creëren vanuit VS Code | ||
Regel 17: | Regel 20: | ||
===== Gradio Installeren ===== | ===== Gradio Installeren ===== | ||
+ | === Gradio project (1) === | ||
+ | |||
< | < | ||
pip install gradio | pip install gradio | ||
</ | </ | ||
+ | |||
**Update/ | **Update/ | ||
< | < | ||
pip install --upgrade gradio | pip install --upgrade gradio | ||
</ | </ | ||
- | **Applicatie starten: | + | **Instaleer dotenv** om het **.env** bestand te kunnen **lezen** zodat daar de systeem variabelen in kunnen |
+ | < | ||
+ | |||
+ | **Applicatie starten | ||
> When developing locally, if you want to run the code as a Python script, you can use the Gradio CLI to launch the application in reload mode, which will provide seamless and fast development. Learn more about reloading in [[https:// | > When developing locally, if you want to run the code as a Python script, you can use the Gradio CLI to launch the application in reload mode, which will provide seamless and fast development. Learn more about reloading in [[https:// | ||
< | < | ||
gradio app.py | gradio app.py | ||
</ | </ | ||
+ | |||
**Je kunt ook de app starten zonder Auto-Reloading: | **Je kunt ook de app starten zonder Auto-Reloading: | ||
< | < | ||
python app.py | python app.py | ||
</ | </ | ||
+ | |||
**Je App delen met anderen -> publiekelijk: | **Je App delen met anderen -> publiekelijk: | ||
< | < | ||
demo.launch(share=True) | demo.launch(share=True) | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | -> **[[http:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | -> **[[https:// | ||
+ | -> **[[https:// | ||
---- | ---- | ||
gradio_project.1694958863.txt.gz · Laatst gewijzigd: 2023/09/17 15:54 door a3dijke