반응형
Building Your First Demo
You can run Gradio in your favorite code editor, Jupyter notebook, Google Colab, or anywhere else you write Python. Let's write your first Gradio app:
pip install gradio
import gradio as gr
def greet(name, intensity):
return "Hello, " + name + "!" * int(intensity)
demo = gr.Interface(
fn=greet,
inputs=["text", "slider"],
outputs=["text"],
)
demo.launch()
https://www.gradio.app/guides/quickstart#building-your-first-demo
반응형
'인공지능' 카테고리의 다른 글
Gamma AI 로 만든 수화 아바타 제작 가이드 (0) | 2024.12.11 |
---|---|
Gradio: Real Time Speech Recognition (0) | 2024.12.09 |
Streamlit + VSCODE (0) | 2024.11.15 |
OpenAI Billing + Langchain LLM AI Service (0) | 2024.11.14 |
Feature Extraction and Performance Comparison for ANN-based Speaker Identification Systems (0) | 2024.11.13 |
댓글