Commit
·
459ba9d
1
Parent(s):
813ce52
Added content to the bottom of the file
Browse files
README.md
CHANGED
@@ -14,4 +14,7 @@ hf_oauth_scopes:
|
|
14 |
- inference-api
|
15 |
---
|
16 |
|
|
|
|
|
|
|
17 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
14 |
- inference-api
|
15 |
---
|
16 |
|
17 |
+
To run the gradio app, install the dependencies and run `python app.py`.
|
18 |
+
You can also do `gradio app.py` to use a filewatcher and update the app as you edit the files, but I haven't found that to work too well.
|
19 |
+
|
20 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
submit.py
CHANGED
@@ -36,10 +36,10 @@ def make_submission(
|
|
36 |
"submission_id": submission_id,
|
37 |
"submission_filename": filename,
|
38 |
"submission_time": timestamp,
|
39 |
-
"csv_content": file_content,
|
40 |
"evaluated": False,
|
41 |
"user": user_state,
|
42 |
-
"anonymous": anonymous_state
|
|
|
43 |
}
|
44 |
with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as tmp:
|
45 |
json.dump(record, tmp, indent=2)
|
|
|
36 |
"submission_id": submission_id,
|
37 |
"submission_filename": filename,
|
38 |
"submission_time": timestamp,
|
|
|
39 |
"evaluated": False,
|
40 |
"user": user_state,
|
41 |
+
"anonymous": anonymous_state,
|
42 |
+
"csv_content": file_content
|
43 |
}
|
44 |
with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as tmp:
|
45 |
json.dump(record, tmp, indent=2)
|