Spaces:
Sleeping
Sleeping
use ensure_questionmark
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def run_model_with_frames(text, framesize=4, overlap=3, progress=gr.Progress()):
|
|
53 |
for frame in frames:
|
54 |
questions = flatten(hf_run_model(frame))
|
55 |
for question in questions:
|
56 |
-
result.add(question.strip())
|
57 |
counter += 1
|
58 |
progress((counter, total_steps), desc="Generating...")
|
59 |
output_string = ""
|
@@ -88,6 +88,8 @@ def ensure_questionmark(question):
|
|
88 |
return question + "?"
|
89 |
|
90 |
description = """
|
|
|
|
|
91 |
Input some Dutch text and click the button to generate some questions!
|
92 |
The model is currently set up to generate as many questions, but this
|
93 |
can take a couple of minutes so have some patience ;)
|
|
|
53 |
for frame in frames:
|
54 |
questions = flatten(hf_run_model(frame))
|
55 |
for question in questions:
|
56 |
+
result.add(ensure_questionmark(question.strip()))
|
57 |
counter += 1
|
58 |
progress((counter, total_steps), desc="Generating...")
|
59 |
output_string = ""
|
|
|
88 |
return question + "?"
|
89 |
|
90 |
description = """
|
91 |
+
#Dutch question generator
|
92 |
+
|
93 |
Input some Dutch text and click the button to generate some questions!
|
94 |
The model is currently set up to generate as many questions, but this
|
95 |
can take a couple of minutes so have some patience ;)
|