코랩 기초 및 파이썬 기초 수정
This commit is contained in:
1 parent
a1cb6fcdf9
commit
ba88ef63f1
23 files changed
+4707
-77
No files matched your search
@@ -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