amaniM commited on
Commit
0dced58
·
verified ·
1 Parent(s): 70a1706

Upload quotes.csv

Browse files

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())

# إنشاء واجهة Gradio
interface = gr.Interface(
fn=display_quote,
outputs='text',
title='Quote Generator',
description='Click the button to generate a random quote!'
)

# تشغيل الواجهة
interface.launch()

Files changed (1) hide show
  1. quotes.csv +6 -0
quotes.csv ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ text,category
2
+ "The only limit to our realization of tomorrow is our doubts of today.",Inspiration
3
+ "Life is what happens when you're busy making other plans.",Life
4
+ "The purpose of our lives is to be happy.",Happiness
5
+ "Get busy living or get busy dying.",Motivation
6
+ "You have within you right now, everything you need to deal with whatever the world can throw at you.",Wisdom