Spaces:
Runtime error
Runtime error
Commit
·
a74e652
1
Parent(s):
266c6a7
feat: add description
Browse files
app.py
CHANGED
@@ -5,6 +5,16 @@ import gradio as gr
|
|
5 |
# Constants
|
6 |
CORE_STARS_CSV_PATH = "core_stars.csv"
|
7 |
OUTPUT_CORE_STARS_TXT_PATH = "core_stars.txt"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
# Normalize Telegram IDs
|
10 |
def normalize_id(telegram_id):
|
@@ -57,7 +67,7 @@ iface = gr.Interface(
|
|
57 |
],
|
58 |
outputs=gr.File(label="Download Updated CSV"),
|
59 |
title="Telegram Core Stars Membership Checker",
|
60 |
-
description=
|
61 |
)
|
62 |
|
63 |
iface.launch()
|
|
|
5 |
# Constants
|
6 |
CORE_STARS_CSV_PATH = "core_stars.csv"
|
7 |
OUTPUT_CORE_STARS_TXT_PATH = "core_stars.txt"
|
8 |
+
APP_DESCRIPTION = """
|
9 |
+
With love by @espejelomar!
|
10 |
+
|
11 |
+
Upload a CSV file, pinpointing the column with users' Telegram IDs. The program then reviews this data and produces a new CSV file. In this file, a `1` in the `is_in_core_stars` column confirms that the person is a member of Core Stars.
|
12 |
+
|
13 |
+
It is 100% certain that if an individual appears in your Excel file and is in the Core Stars group then they will have a 1 in the `is_in_core_stars` column, however there is a low probability (less than 5%) that they will have a 0 and I know part of Core Stars. This happens because the person incorrectly typed their Telegram ID in the form. For example, these are cases that have already happened:
|
14 |
+
|
15 |
+
1. They wrote O instead of 0.
|
16 |
+
2. They changed their Telegram ID after filling out the form.
|
17 |
+
"""
|
18 |
|
19 |
# Normalize Telegram IDs
|
20 |
def normalize_id(telegram_id):
|
|
|
67 |
],
|
68 |
outputs=gr.File(label="Download Updated CSV"),
|
69 |
title="Telegram Core Stars Membership Checker",
|
70 |
+
description=APP_DESCRIPTION
|
71 |
)
|
72 |
|
73 |
iface.launch()
|