Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -781,9 +781,9 @@ with gr.Blocks(
|
|
781 |
|
782 |
result_table = gr.Dataframe(
|
783 |
headers=["Name", "Address", "Location", "Price", "Cuisine", "Award", "Description"],
|
784 |
-
|
785 |
-
|
786 |
-
interactive=False
|
787 |
)
|
788 |
|
789 |
def init_dropdowns():
|
@@ -819,8 +819,10 @@ with gr.Blocks(
|
|
819 |
r['Price'], r['Cuisine'], r['Award'],
|
820 |
r['Description']
|
821 |
])
|
|
|
|
|
822 |
|
823 |
-
return filtered
|
824 |
except FileNotFoundError:
|
825 |
return [["ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค", "", "", "", "", "", "find.csv ํ์ผ์ ํ์ธํด์ฃผ์ธ์"]]
|
826 |
|
@@ -835,6 +837,8 @@ with gr.Blocks(
|
|
835 |
outputs=result_table
|
836 |
)
|
837 |
|
|
|
|
|
838 |
# ์ฌ์ฉ ๊ฐ์ด๋ ํญ
|
839 |
with gr.TabItem("์ด์ฉ ๋ฐฉ๋ฒ", id="instructions_tab"):
|
840 |
gr.Markdown(
|
|
|
781 |
|
782 |
result_table = gr.Dataframe(
|
783 |
headers=["Name", "Address", "Location", "Price", "Cuisine", "Award", "Description"],
|
784 |
+
row_count=10,
|
785 |
+
col_count=7,
|
786 |
+
interactive=False,
|
787 |
)
|
788 |
|
789 |
def init_dropdowns():
|
|
|
819 |
r['Price'], r['Cuisine'], r['Award'],
|
820 |
r['Description']
|
821 |
])
|
822 |
+
if len(filtered) >= 10: # ์ต๋ 10๊ฐ ๊ฒฐ๊ณผ๋ก ์ ํ
|
823 |
+
break
|
824 |
|
825 |
+
return filtered
|
826 |
except FileNotFoundError:
|
827 |
return [["ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค", "", "", "", "", "", "find.csv ํ์ผ์ ํ์ธํด์ฃผ์ธ์"]]
|
828 |
|
|
|
837 |
outputs=result_table
|
838 |
)
|
839 |
|
840 |
+
|
841 |
+
|
842 |
# ์ฌ์ฉ ๊ฐ์ด๋ ํญ
|
843 |
with gr.TabItem("์ด์ฉ ๋ฐฉ๋ฒ", id="instructions_tab"):
|
844 |
gr.Markdown(
|