initial commit
This commit is contained in:
16
extensions-builtin/forge_space_example/forge_app.py
Executable file
16
extensions-builtin/forge_space_example/forge_app.py
Executable file
@@ -0,0 +1,16 @@
|
||||
import spaces
|
||||
import gradio as gr
|
||||
|
||||
|
||||
def greet(name, intensity):
|
||||
return "Hello, " + name + "!" * int(intensity)
|
||||
|
||||
|
||||
demo = gr.Interface(
|
||||
fn=greet,
|
||||
inputs=["text", "slider"],
|
||||
outputs=["text"],
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
demo.launch()
|
||||
Reference in New Issue
Block a user