sabretoothedhugs's picture
Upload folder using huggingface_hub
c4f4606 verified
raw
history blame contribute delete
No virus
324 Bytes
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()