Spaces:
Sleeping
Sleeping
File size: 571 Bytes
9cd5d9e 317f161 9cd5d9e 317f161 9cd5d9e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import gradio as gr
from datasets import load_dataset
# Load the dataset and convert it to a Pandas dataframe
sotu_dataset = 'jsulz/state-of-the-union-addresses'
dataset = load_dataset(sotu_dataset)
df = dataset['train'].to_pandas()
print(df.head(10))
def greet(name):
return "Hello " + name + ", you're cool!!"
# Create a Gradio interface with blocks
with gr.Blocks() as demo:
with gr.Row():
gr.Markdown("# A Dashboard to Analyze the State of the Union Addresses")
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch()
|