Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -170,7 +170,7 @@ def validate_input(title, abstract):
|
|
| 170 |
if non_latin_in_abstract:
|
| 171 |
return False, f"The abstract contains invalid characters: {', '.join(non_latin_in_abstract)}. Only English letters and special symbols are allowed."
|
| 172 |
|
| 173 |
-
return True, "Inputs are valid!
|
| 174 |
|
| 175 |
def update_button_status(title, abstract):
|
| 176 |
valid, message = validate_input(title, abstract)
|
|
@@ -263,7 +263,10 @@ with gr.Blocks(theme=gr.themes.Default(), css=css) as iface:
|
|
| 263 |
# PaperImpact: AI-Powered Research Impact Predictor
|
| 264 |
"""
|
| 265 |
)
|
| 266 |
-
|
|
|
|
|
|
|
|
|
|
| 267 |
with gr.Row():
|
| 268 |
with gr.Column(elem_classes="input-section"):
|
| 269 |
# arXiv Input
|
|
|
|
| 170 |
if non_latin_in_abstract:
|
| 171 |
return False, f"The abstract contains invalid characters: {', '.join(non_latin_in_abstract)}. Only English letters and special symbols are allowed."
|
| 172 |
|
| 173 |
+
return True, "Inputs are valid!"
|
| 174 |
|
| 175 |
def update_button_status(title, abstract):
|
| 176 |
valid, message = validate_input(title, abstract)
|
|
|
|
| 263 |
# PaperImpact: AI-Powered Research Impact Predictor
|
| 264 |
"""
|
| 265 |
)
|
| 266 |
+
gr.HTML("""<a href="https://visitorbadge.io/status?path=https%3A%2F%2FVIDraft-PaperImpact.hf.space">
|
| 267 |
+
<img src="https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2FVIDraft-PaperImpact.hf.space&countColor=%23263759" />
|
| 268 |
+
</a>""")
|
| 269 |
+
|
| 270 |
with gr.Row():
|
| 271 |
with gr.Column(elem_classes="input-section"):
|
| 272 |
# arXiv Input
|