import gradio as gr | |
import torch | |
import pandas as pd | |
def greet(name, intensity): | |
return "Hello, " + name + "!" * int(intensity) + str(pd.isna(1)) + str(torch.cuda.is_available()) | |
demo = gr.Interface( | |
fn=greet, | |
inputs=["text", "slider"], | |
outputs=["text"], | |
theme="soft" | |
) | |
demo.launch() | |