Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| def greet(name): | |
| return "Hello " + name + "!!" | |
| # Gradio interface | |
| with gr.Blocks() as demo: | |
| gr.Markdown("## Citation Integrity Score") | |
| doi_input = gr.Textbox(label="Enter DOI") | |
| pdf_input = gr.File(label="Upload PDF", file_types=[".pdf"]) | |
| output = gr.Textbox(label="Output") | |
| submit_btn = gr.Button("Submit") | |
| # submit_btn.click(fn=process_input, inputs=[doi_input, pdf_input], outputs=output) | |
| demo.launch() | |
| demo = gr.Interface(fn=greet, inputs="text", outputs="text") | |
| demo.launch() | |