Spaces:
Sleeping
Sleeping
Vladyslav Khaitov
commited on
Commit
·
e354c90
1
Parent(s):
4933f00
Remove local run stub
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ Report your thoughts, and provide the answer.
|
|
| 28 |
|
| 29 |
- The answer should be a number OR as few words as possible OR a comma (with space) separated list of numbers and/or strings.
|
| 30 |
- If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise or write the digits in plain text.
|
| 31 |
-
- If you are asked for a string, don't use articles, neither abbreviations nor shortened versions (e.g. for cities), and write the digits in plain text unless specified otherwise.
|
| 32 |
- If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
| 33 |
|
| 34 |
- Pay special attention to dates in question. If needed use the Wayback Machine to search for appropriate archived pages.
|
|
@@ -46,9 +46,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 46 |
and displays the results.
|
| 47 |
"""
|
| 48 |
# --- Determine HF Space Runtime URL and Repo URL ---
|
| 49 |
-
space_id =
|
| 50 |
-
|
| 51 |
-
'preferred_username': 'VladKha', 'profile': 'VladKha', 'picture': None})
|
| 52 |
if profile:
|
| 53 |
username= f"{profile.username}"
|
| 54 |
print(f"User logged in: {username}")
|
|
|
|
| 28 |
|
| 29 |
- The answer should be a number OR as few words as possible OR a comma (with space) separated list of numbers and/or strings.
|
| 30 |
- If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise or write the digits in plain text.
|
| 31 |
+
- If you are asked for a string, don't use articles, neither abbreviations nor shortened versions (e.g. for cities), also do not add extra punctuation at the end, and write the digits in plain text unless specified otherwise.
|
| 32 |
- If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
| 33 |
|
| 34 |
- Pay special attention to dates in question. If needed use the Wayback Machine to search for appropriate archived pages.
|
|
|
|
| 46 |
and displays the results.
|
| 47 |
"""
|
| 48 |
# --- Determine HF Space Runtime URL and Repo URL ---
|
| 49 |
+
space_id = os.getenv("SPACE_ID") # Get the SPACE_ID for sending link to the code
|
| 50 |
+
|
|
|
|
| 51 |
if profile:
|
| 52 |
username= f"{profile.username}"
|
| 53 |
print(f"User logged in: {username}")
|