Downloads · 30 days
0
amaniM/quotes
quotes is a machine learning model from amaniM. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
import pandas as pd import random import gradio as gr
Downloads · 30 days
0
Access
Public
Updated Sep 12, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 53%
From the Hugging Face model README
import pandas as pd import random import gradio as gr
quotes = pd.read_csv('quotes.csv')
def display_quote(): return random.choice(quotes['text'].tolist())
interface = gr.Interface( fn=display_quote, outputs='text', title='Quote Generator', description='Click the button to generate a random quote!' )
interface.launch()