import gradio as gr | |
def greet(prompt, temperature, max_lenth, top_p): | |
return "Hello, world!" | |
demo = gr.Interface( | |
fn=greet, | |
inputs=["text", "slider", "slider", "slider"], | |
outputs=["text"], | |
) | |
demo.launch() |
import gradio as gr | |
def greet(prompt, temperature, max_lenth, top_p): | |
return "Hello, world!" | |
demo = gr.Interface( | |
fn=greet, | |
inputs=["text", "slider", "slider", "slider"], | |
outputs=["text"], | |
) | |
demo.launch() |