NimaBoscarino commited on
Commit
f1ab130
1 Parent(s): 2c90032

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -6
app.py CHANGED
@@ -70,7 +70,7 @@ principles = [
70
  - Training language models on languages that aren't yet available on the Hugging Face Hub.
71
  - Creating no-code frameworks that allow non-technical folk to engage with AI.
72
 
73
- Featured Space:
74
 
75
  - [hackathon-pln-es/Spanish-Nahuatl-Translation](https://huggingface.co/spaces/hackathon-pln-es/Spanish-Nahuatl-Translation)
76
  - [hackathon-pln-es/readability-assessment-spanish](https://huggingface.co/spaces/hackathon-pln-es/readability-assessment-spanish)
@@ -125,9 +125,9 @@ def toggle_description(title, content):
125
 
126
 
127
  def submit_entry(URL, tags, suggestions, comments):
128
- hf_writer.flag(
129
- flag_data=[URL, tags, suggestions, comments]
130
- )
131
 
132
  return [
133
  gr.Markdown.update(
@@ -136,7 +136,11 @@ def submit_entry(URL, tags, suggestions, comments):
136
  ),
137
  gr.Button.update(
138
  visible=False
139
- )
 
 
 
 
140
  ]
141
 
142
 
@@ -189,7 +193,14 @@ with gr.Blocks(css="#margin-top {margin-top: 15px}") as demo:
189
  submit.click(
190
  fn=submit_entry,
191
  inputs=[URL, tags, suggestions, comments],
192
- outputs=[thank_you, submit]
 
 
 
 
 
 
 
193
  )
194
 
195
  hf_writer.setup(
 
70
  - Training language models on languages that aren't yet available on the Hugging Face Hub.
71
  - Creating no-code frameworks that allow non-technical folk to engage with AI.
72
 
73
+ Featured Spaces:
74
 
75
  - [hackathon-pln-es/Spanish-Nahuatl-Translation](https://huggingface.co/spaces/hackathon-pln-es/Spanish-Nahuatl-Translation)
76
  - [hackathon-pln-es/readability-assessment-spanish](https://huggingface.co/spaces/hackathon-pln-es/readability-assessment-spanish)
 
125
 
126
 
127
  def submit_entry(URL, tags, suggestions, comments):
128
+ # hf_writer.flag(
129
+ # flag_data=[URL, tags, suggestions, comments]
130
+ # )
131
 
132
  return [
133
  gr.Markdown.update(
 
136
  ),
137
  gr.Button.update(
138
  visible=False
139
+ ),
140
+ gr.Text.update(interactive=False),
141
+ gr.Checkboxgroup.update(interactive=False),
142
+ gr.Text.update(interactive=False),
143
+ gr.TextArea.update(interactive=False),
144
  ]
145
 
146
 
 
193
  submit.click(
194
  fn=submit_entry,
195
  inputs=[URL, tags, suggestions, comments],
196
+ outputs=[
197
+ thank_you,
198
+ submit,
199
+ URL,
200
+ tags,
201
+ suggestions,
202
+ comments,
203
+ ]
204
  )
205
 
206
  hf_writer.setup(