코랩 기초 및 파이썬 기초 수정
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import gradio as gr
|
||||
|
||||
def greet(name, intensity):
|
||||
return "Hello, " + name + "!" * int(intensity)
|
||||
|
||||
demo = gr.Interface(
|
||||
fn=greet,
|
||||
inputs=["text", "slider"],
|
||||
outputs=["text"],
|
||||
api_name="predict"
|
||||
)
|
||||
|
||||
demo.launch()
|
||||
Reference in New Issue
Block a user