Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ with gr.Blocks(title="Textile Machinery NER Demo") as demo:
|
|
105 |
attempts += 1
|
106 |
except StopIteration:
|
107 |
break
|
108 |
-
|
109 |
|
110 |
# Connect refresh button
|
111 |
refresh_btn.click(fn=get_new_snippet, outputs=input_text)
|
|
|
105 |
attempts += 1
|
106 |
except StopIteration:
|
107 |
break
|
108 |
+
return "No more snippets available."
|
109 |
|
110 |
# Connect refresh button
|
111 |
refresh_btn.click(fn=get_new_snippet, outputs=input_text)
|