Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -197,17 +197,18 @@ def create_dictionary(word_list, word_dict = {}):
|
|
197 |
with gr.Blocks() as lliface:
|
198 |
with gr.Tab("Welcome "):
|
199 |
gr.HTML("<h1> Spaces Test - Still Undercontruction </h1> <p> You only learn when you convert things you dont know to known --> Normally Repetition is the only reliable method for everybody </p> <p> Knowledge is a Language </p> <p>LingQ is good option for per word state management</p> <p> Arrows app json creator for easy knowledge graphing and spacy POS graph? </p> <p> https://huggingface.co/spaces/RASMUS/Whisper-youtube-crosslingual-subtitles<br>, https://huggingface.co/spaces/vumichien/whisper-speaker-diarization<br> Maybe duplicate these, private them and then load into spaces? --> Whisper space for youtube, Clip Interrogator, load here and all my random functions esp. text to HTML </p>")
|
|
|
|
|
|
|
200 |
with gr.Tab("LingQ Addons ideas"):
|
201 |
-
gr.HTML("Extra functions needed - Persitent Sentence translation, UNWFWO, POS tagging and Word Count per user of words in their account")
|
202 |
with gr.Row():
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
with gr.Column(scale=1):
|
210 |
-
gr.TextArea(title="Macaronic Text")
|
211 |
with gr.Row():
|
212 |
gr.Interface(fn=create_dictionary, inputs="text", outputs="text", title="Placeholder for transcript editor functions")
|
213 |
with gr.Tab("Transcribe - RASMUS Whisper"):
|
@@ -219,10 +220,8 @@ with gr.Blocks() as lliface:
|
|
219 |
with gr.Tab("Chunks"):
|
220 |
gr.Interface(fn=FrontRevSentChunk, inputs=[ChunkModeDrop, "checkbox", "text", langdest], outputs="text")
|
221 |
gr.Interface(fn=keep_nouns_verbs, inputs=["text"], outputs="text", title="Noun and Verbs only (Plus punctuation)")
|
222 |
-
with gr.Tab("
|
223 |
-
gr.Interface(fn=
|
224 |
-
gr.Interface(fn=SepHypandSynExpansion, inputs="text", outputs=["text", "text"], title="Word suggestions")
|
225 |
-
gr.Interface(fn=WikiSearch, inputs="text", outputs="text", title="Unique word suggestions(wiki articles)")
|
226 |
with gr.Tab("Timing Practice"):
|
227 |
gr.HTML("""<iframe height="1200" style="width: 100%;" scrolling="no" title="Memorisation Aid" src="https://codepen.io/kwabs22/embed/preview/GRXKQgj?default-tab=result&editable=true" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
|
228 |
See the Pen <a href="https://codepen.io/kwabs22/pen/GRXKQgj">
|
|
|
197 |
with gr.Blocks() as lliface:
|
198 |
with gr.Tab("Welcome "):
|
199 |
gr.HTML("<h1> Spaces Test - Still Undercontruction </h1> <p> You only learn when you convert things you dont know to known --> Normally Repetition is the only reliable method for everybody </p> <p> Knowledge is a Language </p> <p>LingQ is good option for per word state management</p> <p> Arrows app json creator for easy knowledge graphing and spacy POS graph? </p> <p> https://huggingface.co/spaces/RASMUS/Whisper-youtube-crosslingual-subtitles<br>, https://huggingface.co/spaces/vumichien/whisper-speaker-diarization<br> Maybe duplicate these, private them and then load into spaces? --> Whisper space for youtube, Clip Interrogator, load here and all my random functions esp. text to HTML </p>")
|
200 |
+
gr.Interface(fn=unique_word_count, inputs="text", outputs="text", title="Wordcounter")
|
201 |
+
gr.Interface(fn=SepHypandSynExpansion, inputs="text", outputs=["text", "text"], title="Word suggestions")
|
202 |
+
gr.Interface(fn=WikiSearch, inputs="text", outputs="text", title="Unique word suggestions(wiki articles)")
|
203 |
with gr.Tab("LingQ Addons ideas"):
|
204 |
+
gr.HTML("Extra functions needed - Persitent Sentence translation, UNWFWO, POS tagging and Word Count per user of words in their account. Macaronic Text is also another way to practice only the important information")
|
205 |
with gr.Row():
|
206 |
+
gr.TextArea(label="Paste Roman")
|
207 |
+
gr.TextArea(label="Paste Word 4 Word")
|
208 |
+
gr.TextArea(label="Paste Full Meaning")
|
209 |
+
gr.TextArea(label="Paste Macaronic Text")
|
210 |
+
gr.Button()
|
211 |
+
gr.TextArea(label="Output")
|
|
|
|
|
212 |
with gr.Row():
|
213 |
gr.Interface(fn=create_dictionary, inputs="text", outputs="text", title="Placeholder for transcript editor functions")
|
214 |
with gr.Tab("Transcribe - RASMUS Whisper"):
|
|
|
220 |
with gr.Tab("Chunks"):
|
221 |
gr.Interface(fn=FrontRevSentChunk, inputs=[ChunkModeDrop, "checkbox", "text", langdest], outputs="text")
|
222 |
gr.Interface(fn=keep_nouns_verbs, inputs=["text"], outputs="text", title="Noun and Verbs only (Plus punctuation)")
|
223 |
+
with gr.Tab("Dictionary from text"):
|
224 |
+
gr.Interface(fn=create_dictionary, inputs="text", outputs="text", title="Two Letter Dictionary")
|
|
|
|
|
225 |
with gr.Tab("Timing Practice"):
|
226 |
gr.HTML("""<iframe height="1200" style="width: 100%;" scrolling="no" title="Memorisation Aid" src="https://codepen.io/kwabs22/embed/preview/GRXKQgj?default-tab=result&editable=true" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
|
227 |
See the Pen <a href="https://codepen.io/kwabs22/pen/GRXKQgj">
|