Spaces:
Build error
Build error
elibrowne commited on
Commit ·
ed092c2
1
Parent(s): a5c31fc
State?
Browse files
app.py
CHANGED
|
@@ -157,11 +157,9 @@ with gr.Blocks(theme = theme) as user_eval:
|
|
| 157 |
}
|
| 158 |
# No longer uploading after first creation: user must answer question for that.
|
| 159 |
|
| 160 |
-
def update_huggingface(
|
| 161 |
print("Updating data...")
|
| 162 |
-
|
| 163 |
-
print(str(id))
|
| 164 |
-
print(id.value)
|
| 165 |
filename = id.replace('@', '_AT_').replace('.', '_DOT_')
|
| 166 |
# Create a local file that will be uploaded to HuggingFace
|
| 167 |
with open(filename + ".json", "w") as f:
|
|
|
|
| 157 |
}
|
| 158 |
# No longer uploading after first creation: user must answer question for that.
|
| 159 |
|
| 160 |
+
def update_huggingface(data):
|
| 161 |
print("Updating data...")
|
| 162 |
+
id = data["user_id"]
|
|
|
|
|
|
|
| 163 |
filename = id.replace('@', '_AT_').replace('.', '_DOT_')
|
| 164 |
# Create a local file that will be uploaded to HuggingFace
|
| 165 |
with open(filename + ".json", "w") as f:
|