Spaces:
Sleeping
Sleeping
FoodDesert
commited on
Commit
•
79c8c7e
1
Parent(s):
43765e1
Upload app.py
Browse files
app.py
CHANGED
@@ -321,7 +321,6 @@ def conditional_probability(word_i, word_j, co_occurrence_matrix, vocabulary, do
|
|
321 |
return None
|
322 |
|
323 |
|
324 |
-
#geometric_mean_given_words(target_word, context_words, conditional_co_occurrence_matrix, conditioanl_vocabulary, conditional_doc_count, smoothing_value=conditional_smoothing):
|
325 |
def geometric_mean_given_words(target_word, context_words, co_occurrence_matrix, vocabulary, doc_count, smoothing_value=0.01):
|
326 |
probabilities = []
|
327 |
|
@@ -485,8 +484,8 @@ with gr.Blocks() as app:
|
|
485 |
for root, dirs, files in os.walk(sample_images_directory_path):
|
486 |
for name in dirs:
|
487 |
with gr.Row():
|
488 |
-
baseline = gr.Gallery(
|
489 |
-
styles = gr.Gallery(preview=
|
490 |
galleries.extend([baseline, styles])
|
491 |
|
492 |
submit_button.click(
|
|
|
321 |
return None
|
322 |
|
323 |
|
|
|
324 |
def geometric_mean_given_words(target_word, context_words, co_occurrence_matrix, vocabulary, doc_count, smoothing_value=0.01):
|
325 |
probabilities = []
|
326 |
|
|
|
484 |
for root, dirs, files in os.walk(sample_images_directory_path):
|
485 |
for name in dirs:
|
486 |
with gr.Row():
|
487 |
+
baseline = gr.Gallery(allow_preview=False, rows=1, columns=1, height=420, scale=3)
|
488 |
+
styles = gr.Gallery(preview=False, rows=2, columns=5, height=420, scale=8)
|
489 |
galleries.extend([baseline, styles])
|
490 |
|
491 |
submit_button.click(
|