Spaces:
Sleeping
Sleeping
Christof Bless
commited on
add DOI and PDF inputs
Browse files
app.py
CHANGED
|
@@ -3,5 +3,18 @@ import gradio as gr
|
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name + "!!"
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
demo.launch()
|
|
|
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name + "!!"
|
| 5 |
|
| 6 |
+
# Gradio interface
|
| 7 |
+
with gr.Blocks() as demo:
|
| 8 |
+
gr.Markdown("## Citation Integrity Score")
|
| 9 |
+
|
| 10 |
+
doi_input = gr.Textbox(label="Enter DOI")
|
| 11 |
+
pdf_input = gr.File(label="Upload PDF", file_types=[".pdf"])
|
| 12 |
+
output = gr.Textbox(label="Output")
|
| 13 |
+
|
| 14 |
+
submit_btn = gr.Button("Submit")
|
| 15 |
+
# submit_btn.click(fn=process_input, inputs=[doi_input, pdf_input], outputs=output)
|
| 16 |
+
|
| 17 |
+
demo.launch()
|
| 18 |
+
|
| 19 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 20 |
demo.launch()
|