Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,6 @@ import plotly.express as px
|
|
3 |
|
4 |
# Chatbot demo with multimodal input (text, markdown, LaTeX, code blocks, image, audio, & video). Plus shows support for streaming text.
|
5 |
|
6 |
-
def random_plot():
|
7 |
-
df = px.data.iris()
|
8 |
-
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species",
|
9 |
-
size='petal_length', hover_data=['petal_width'])
|
10 |
-
return fig
|
11 |
|
12 |
def print_like_dislike(x: gr.LikeData):
|
13 |
print(x.index, x.value, x.liked)
|
@@ -23,7 +18,6 @@ def bot(history):
|
|
23 |
history[-1][1] = "Cool!"
|
24 |
return history
|
25 |
|
26 |
-
fig = random_plot()
|
27 |
|
28 |
with gr.Blocks(fill_height=True) as demo:
|
29 |
chatbot = gr.Chatbot(
|
|
|
3 |
|
4 |
# Chatbot demo with multimodal input (text, markdown, LaTeX, code blocks, image, audio, & video). Plus shows support for streaming text.
|
5 |
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
def print_like_dislike(x: gr.LikeData):
|
8 |
print(x.index, x.value, x.liked)
|
|
|
18 |
history[-1][1] = "Cool!"
|
19 |
return history
|
20 |
|
|
|
21 |
|
22 |
with gr.Blocks(fill_height=True) as demo:
|
23 |
chatbot = gr.Chatbot(
|