dar-tau commited on
Commit
cbd7ed1
1 Parent(s): 504fdbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,7 +1,13 @@
1
  import gradio as gr
 
 
 
2
 
3
- def greet(name):
 
 
4
  return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
7
  iface.launch()
 
1
  import gradio as gr
2
+ from datasets import load_dataset
3
+ import matplotlib.pyplot as plt
4
+ import seaborn as sns
5
 
6
+ dataset = load_dataset('dar-tau/grammar-attention-maps-opt-350m')
7
+
8
+ def choose_sentence(name):
9
  return "Hello " + name + "!!"
10
 
11
+
12
+ iface = gr.Interface(fn=choose_sentence, inputs="text", outputs="text")
13
  iface.launch()