Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
2 |
|
3 |
-
|
|
|
|
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
|
|
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()
|