Spaces:
Sleeping
Sleeping
ToluClassics
commited on
Commit
β’
f8aa2c5
1
Parent(s):
4350355
Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,7 @@ def search(query, language, num_results=10):
|
|
113 |
stats = fetch_index_stats('index/')
|
114 |
|
115 |
description = f"""# <h2 style="text-align: center;"> π π XSum Train Dataset Search π π </h2>
|
116 |
-
<p style="text-align: center;font-size:15px;">
|
117 |
<p style="text-align: center;font-size:20px;">Dataset Statistics: Total Number of Documents = <b>{stats["documents"]}</b>, Number of Terms = <b>{stats["total_terms"]}</b> </p>"""
|
118 |
|
119 |
demo = gr.Blocks(
|
@@ -129,8 +129,6 @@ with demo:
|
|
129 |
lang = gr.Dropdown(
|
130 |
choices=[
|
131 |
"en",
|
132 |
-
"detect_language",
|
133 |
-
"all",
|
134 |
],
|
135 |
value="en",
|
136 |
label="Language",
|
|
|
113 |
stats = fetch_index_stats('index/')
|
114 |
|
115 |
description = f"""# <h2 style="text-align: center;"> π π XSum Train Dataset Search π π </h2>
|
116 |
+
<p style="text-align: center;font-size:15px;">A search space built on the Extreme Summarization (XSUM) Dataset with Spacerini</p>
|
117 |
<p style="text-align: center;font-size:20px;">Dataset Statistics: Total Number of Documents = <b>{stats["documents"]}</b>, Number of Terms = <b>{stats["total_terms"]}</b> </p>"""
|
118 |
|
119 |
demo = gr.Blocks(
|
|
|
129 |
lang = gr.Dropdown(
|
130 |
choices=[
|
131 |
"en",
|
|
|
|
|
132 |
],
|
133 |
value="en",
|
134 |
label="Language",
|