raoufjat commited on
Commit
f6734bb
·
verified ·
1 Parent(s): 90901cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -3
app.py CHANGED
@@ -1,8 +1,22 @@
1
- # Install the datasets library
 
2
  from datasets import load_dataset
3
 
 
4
  # Load the dataset
5
  dataset = load_dataset("MohamedRashad/arabic-books")
6
 
7
- # Print the dataset info
8
- print(dataset)
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import gradio as gr
3
  from datasets import load_dataset
4
 
5
+
6
  # Load the dataset
7
  dataset = load_dataset("MohamedRashad/arabic-books")
8
 
9
+
10
+ def display_info():
11
+ # Example output from the dataset
12
+ return str(dataset)
13
+
14
+
15
+ # Gradio UI
16
+ interface = gr.Interface(
17
+ fn=display_info,
18
+ inputs=[],
19
+ outputs="text",
20
+ )
21
+
22
+ interface.launch()