Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -213,7 +213,7 @@ class CombinedProcessor:
|
|
213 |
top_style_score = list_style.iloc[0]['score']
|
214 |
|
215 |
# Create the style information string
|
216 |
-
style_info = f"
|
217 |
|
218 |
# Join BibTeX entries
|
219 |
bibtex_content = "\n\n".join(bibtex_entries)
|
@@ -226,9 +226,9 @@ processor = CombinedProcessor()
|
|
226 |
# Define the Gradio interface
|
227 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
228 |
gr.HTML("""<h1 style="text-align:center">Reversed Zotero</h1>""")
|
229 |
-
text_input = gr.Textbox(label="Your
|
230 |
text_button = gr.Button("Process Text")
|
231 |
-
style_output = gr.Textbox(label="
|
232 |
bibtex_output = gr.Textbox(label="BibTeX Entries", lines=15)
|
233 |
|
234 |
export_button = gr.Button("Export BibTeX")
|
|
|
213 |
top_style_score = list_style.iloc[0]['score']
|
214 |
|
215 |
# Create the style information string
|
216 |
+
style_info = f"Estimated bibliographic style: {top_style} (Mean score: {top_style_score:.6f})"
|
217 |
|
218 |
# Join BibTeX entries
|
219 |
bibtex_content = "\n\n".join(bibtex_entries)
|
|
|
226 |
# Define the Gradio interface
|
227 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
228 |
gr.HTML("""<h1 style="text-align:center">Reversed Zotero</h1>""")
|
229 |
+
text_input = gr.Textbox(label="Your unstructured bibliography", type="text", lines=10)
|
230 |
text_button = gr.Button("Process Text")
|
231 |
+
style_output = gr.Textbox(label="Bibliographic Style", lines=2)
|
232 |
bibtex_output = gr.Textbox(label="BibTeX Entries", lines=15)
|
233 |
|
234 |
export_button = gr.Button("Export BibTeX")
|