Update app.py
Browse files
app.py
CHANGED
@@ -54,6 +54,9 @@ def plot_similarity_score(taraf_num, metr):
|
|
54 |
return fig, fig_dis, taraf_df[['matn', 'Number', 'Book_Name', 'Author', 'Hadith Number']]
|
55 |
|
56 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
57 |
taraf_number = gr.Slider(1,taraf_max , value=10000, label="Taraf", info="Choose the Taraf to Input", step = 1)
|
58 |
metric = gr.Dropdown(choices = choice, value = 'cosine', label = 'Variable to Display', info = 'Choose the variable to visualize.')
|
59 |
btn = gr.Button('Submit')
|
|
|
54 |
return fig, fig_dis, taraf_df[['matn', 'Number', 'Book_Name', 'Author', 'Hadith Number']]
|
55 |
|
56 |
with gr.Blocks() as demo:
|
57 |
+
gr.Markdown('#Semantic Distance Visualizer')
|
58 |
+
gr.Markdown('Please note, the closer to zero, the better for this approach. This is semantic distance. On the Matrix plot, I\'ve reversed the color scales. This means that more yellow points are more similar, more purple = more dissimilar. ')
|
59 |
+
|
60 |
taraf_number = gr.Slider(1,taraf_max , value=10000, label="Taraf", info="Choose the Taraf to Input", step = 1)
|
61 |
metric = gr.Dropdown(choices = choice, value = 'cosine', label = 'Variable to Display', info = 'Choose the variable to visualize.')
|
62 |
btn = gr.Button('Submit')
|